hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1464) Add ability to override HttpClientBuilder.disableContentCompression() setting at request execution level
Date Sat, 30 May 2015 19:54:18 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14566166#comment-14566166
] 

Michael Osipov commented on HTTPCLIENT-1464:
--------------------------------------------

[~cosjav], please note that this feature will be superceded by HTTPCLIENT-1654 and removed
in 5.0.

> Add ability to override HttpClientBuilder.disableContentCompression() setting at request
execution level
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1464
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1464
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient
>    Affects Versions: 4.3.1, 4.3.2
>            Reporter: Javad Tohidi
>            Priority: Minor
>              Labels: features
>             Fix For: 4.4 Alpha1
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message