Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D6A0218927 for ; Sat, 30 May 2015 19:54:18 +0000 (UTC) Received: (qmail 72496 invoked by uid 500); 30 May 2015 19:54:18 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 72448 invoked by uid 500); 30 May 2015 19:54:18 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 72436 invoked by uid 99); 30 May 2015 19:54:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 May 2015 19:54:18 +0000 Date: Sat, 30 May 2015 19:54:18 +0000 (UTC) From: "Michael Osipov (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCLIENT-1464) Add ability to override HttpClientBuilder.disableContentCompression() setting at request execution level MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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