Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1464

Add ability to override HttpClientBuilder.disableContentCompression() setting at request execution level

    XMLWordPrintableJSON

Details

    Description

      As of version 4.3 automatic content decompression is switched on by default. If someone wants to disable this they can call the following method HttpClientBuilder.disableContentCompression() at the time of HttpClient creation.

      If you would like content decompression to be switched on at the HttpClient level but switch it off for specific requests that use this client it is currently not available to do so via any setting in HttpClientContext or RequestConfig.

      It would be nice if this setting is added to either HttpClientContext or RequestConfig and utilised at the appropriate time during request execution to override the HttpClient setting.

      The alternative for now is to create a separate HttpClient with Content Compression disabled for requests that need this setting.

      Please see this stack overflow question for the reason why this JIRA has been raised: http://stackoverflow.com/q/21818242/1547546

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cosjav Javad Tohidi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: