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] (HTTPASYNC-71) ContentDecoder doesn't read from wrapped decompression stream created by ResponseContentEncoding proccessor
Date Fri, 07 Mar 2014 09:47:43 GMT

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

Oleg Kalnichevski commented on HTTPASYNC-71:
--------------------------------------------

Blocking protocol interceptors simply cannot be used to process entity content streamed asynchronously
for obvious reasons. HttpAsyncClient presently does not support transparent content decompression.

Oleg

> ContentDecoder doesn't read from wrapped decompression stream created by ResponseContentEncoding
proccessor
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: HTTPASYNC-71
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-71
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: Bug
>            Reporter: clajder
>            Priority: Minor
>              Labels: decopression, httpprocessor
>
> 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


Mime
View raw message