You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2014/03/07 10:49:43 UTC
[jira] [Updated] (HTTPASYNC-71) Support for transparent content
decompression
[ https://issues.apache.org/jira/browse/HTTPASYNC-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski updated HTTPASYNC-71:
---------------------------------------
Priority: Major (was: Minor)
Fix Version/s: Future
Issue Type: Improvement (was: Bug)
Summary: Support for transparent content decompression (was: ContentDecoder doesn't read from wrapped decompression stream created by ResponseContentEncoding proccessor)
> Support for transparent content decompression
> ---------------------------------------------
>
> Key: HTTPASYNC-71
> URL: https://issues.apache.org/jira/browse/HTTPASYNC-71
> Project: HttpComponents HttpAsyncClient
> Issue Type: Improvement
> Reporter: clajder
> Labels: decopression, httpprocessor
> Fix For: Future
>
>
> Created http processor array like this
> HttpProcessor httpproc = HttpProcessorBuilder.create()
> .add(new RequestDefaultHeaders())
> .add(new RequestAcceptEncoding())
> .add(new RequestClientConnControl())
> .add(new RequestContent())
> .add(new ResponseContentEncoding())
> .add(new RequestTargetHost()).build();
>
> later http async client constructed as follows
> CloseableHttpAsyncClient httpclient = HttpAsyncClients.custom()
> .setConnectionManager(connManager)
> .setHttpProcessor(httpproc)
> .setUserAgent(hc.getUserAgent())
> .setDefaultRequestConfig(defaultRequestConfig)
> .build();
> during invocation
> Future<HttpResponse> future = httpclient .execute(httpget, null);
> HttpResponse response = future.get();
> entity.getContent() is not decompressed (gzip), however ResponseContentEncoding http processor was executed
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org