hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1651) Add ability to disable content compression on a request basis
Date Fri, 29 May 2015 09:46:18 GMT

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

Oleg Kalnichevski commented on HTTPCLIENT-1651:
-----------------------------------------------

I completely forgot about it. Anyway, {{RequestConfig#isDecompressionEnabled}} disables decompression
only. With this parameter set to true HttpClient would still request content compression by
including 'Accept-Encoding: gzip,deflate' header in request messages. {{HttpClientBuilder#disableContentCompression}}
disables content _compression_ entirely, hence the choice of the name. It is up to you if
you want to harmonize the methods, just please keep the old method and mark it deprecated.

Oleg 

> Add ability to disable content compression on a request basis
> -------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1651
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1651
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient
>    Affects Versions: 4.4.1
>            Reporter: Michael Osipov
>            Assignee: Michael Osipov
>             Fix For: 4.5, 5.0
>
>
> We use one client for serveral, different requests. Most of the are {{application/xml}}
where compression is appropriate but some transport big binary data. Those requests drop from
30 MB/s to 5 to 7 MB/s.
> Unfortunately, compression can only be disabled client-wide. A {{RequestConfig}} or {{HttpContext}}
boolean flag for {{RequestContentEncoding}} processor would be great.



--
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