Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.3.1, 4.3.2
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
- is superceded by
-
HTTPCLIENT-1654 Deprecate/remove RequestConfig#decompressionEnabled in favor of #contentCompressionEnabled
- Closed
- relates to
-
HTTPCLIENT-1651 Add ability to disable content compression on a request basis
- Closed