Solr
  1. Solr
  2. SOLR-6043

Allow internal components to add headers to the HTTP response

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.9, 6.0
    • Fix Version/s: 4.9, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      Add headers to SolrQueryResponse that are then copied to the HTTP response. This would allow handlers to add headers to the HTTP response.

      1. SOLR-6043.patch
        17 kB
        Tomás Fernández Löbbe

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1593423 from Ryan Ernst in branch 'dev/trunk'
        [ https://svn.apache.org/r1593423 ]

        SOLR-6043: Add ability to set http headers in solr response

        Show
        ASF subversion and git services added a comment - Commit 1593423 from Ryan Ernst in branch 'dev/trunk' [ https://svn.apache.org/r1593423 ] SOLR-6043 : Add ability to set http headers in solr response
        Hide
        ASF subversion and git services added a comment -

        Commit 1593426 from Ryan Ernst in branch 'dev/trunk'
        [ https://svn.apache.org/r1593426 ]

        SOLR-6043: Fix changes entry

        Show
        ASF subversion and git services added a comment - Commit 1593426 from Ryan Ernst in branch 'dev/trunk' [ https://svn.apache.org/r1593426 ] SOLR-6043 : Fix changes entry
        Hide
        ASF subversion and git services added a comment -

        Commit 1593427 from Ryan Ernst in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1593427 ]

        SOLR-6043: Add ability to set http headers in solr response

        Show
        ASF subversion and git services added a comment - Commit 1593427 from Ryan Ernst in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1593427 ] SOLR-6043 : Add ability to set http headers in solr response
        Hide
        Ryan Ernst added a comment -

        Thanks Tomás!

        Show
        Ryan Ernst added a comment - Thanks Tomás!
        Hide
        Ahmet Arslan added a comment -

        What is the use-case for this functionality?

        Show
        Ahmet Arslan added a comment - What is the use-case for this functionality?
        Hide
        Ryan Ernst added a comment -

        The most immediate use case is adding a component to handle CORS.

        Show
        Ryan Ernst added a comment - The most immediate use case is adding a component to handle CORS .

          People

          • Assignee:
            Ryan Ernst
            Reporter:
            Tomás Fernández Löbbe
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development