hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Kemnade (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HTTPCLIENT-1390) It should be easy to use gzip compression
Date Mon, 19 Aug 2013 09:37:49 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jochen Kemnade updated HTTPCLIENT-1390:
---------------------------------------

    Description: 
Currently, to use gzip compression, you have to manually set the {{Accept-Encoding}} header
on the {{Request}}, check for the {{Content-Encoding}} header on the response and optionally
use a {{GZIPInputStream}} on {{asStream()}}.
As this behavior is already implemented in {{DecompressingHttpClient}} (or {{org.apache.http.client.protocol.RequestAcceptEncoding}}
and {{org.apache.http.client.protocol.ResponseContentEncoding}}), a {{useCompression()}} method
could be added to {{org.apache.http.client.fluent.Request}} that wraps a {{DecompressingHttpClient}}
around {{Executor.CLIENT}} in the {{execute()}} method.

  was:
Currently, to use gzip compression, you have to manually set the {{Accept-Encoding}} header
on the {{Request}}, check for the {{Content-Encoding\\ header on the response and optionally
use a {{GZIPInputStream}} on {{asStream()}}.
As this behavior is already implemented in {{DecompressingHttpClient}} (or {{org.apache.http.client.protocol.RequestAcceptEncoding}}
and {{org.apache.http.client.protocol.ResponseContentEncoding}}), a {{useCompression()}} method
could be added to {{org.apache.http.client.fluent.Request}} that wraps a {{DecompressingHttpClient}}
around {{Executor.CLIENT}} in the {{execute()}} method.

    
> It should be easy to use gzip compression
> -----------------------------------------
>
>                 Key: HTTPCLIENT-1390
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1390
>             Project: HttpComponents HttpClient
>          Issue Type: Wish
>          Components: Fluent HC
>    Affects Versions: 4.2.5
>            Reporter: Jochen Kemnade
>
> Currently, to use gzip compression, you have to manually set the {{Accept-Encoding}}
header on the {{Request}}, check for the {{Content-Encoding}} header on the response and optionally
use a {{GZIPInputStream}} on {{asStream()}}.
> As this behavior is already implemented in {{DecompressingHttpClient}} (or {{org.apache.http.client.protocol.RequestAcceptEncoding}}
and {{org.apache.http.client.protocol.ResponseContentEncoding}}), a {{useCompression()}} method
could be added to {{org.apache.http.client.fluent.Request}} that wraps a {{DecompressingHttpClient}}
around {{Executor.CLIENT}} in the {{execute()}} method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message