[jira] [Updated] (HTTPCLIENT-1822) Support for transparent content decompression

2020-09-28 Thread Oleg Kalnichevski (Jira)


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

Oleg Kalnichevski updated HTTPCLIENT-1822:
--
Fix Version/s: (was: 5.1-beta1)
   Stuck
   Future
   Labels: decopression httpprocessor stuck volunteers-wanted  (was: 
decopression httpprocessor volunteers-wanted)

> Support for transparent content decompression
> -
>
> Key: HTTPCLIENT-1822
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1822
> Project: HttpComponents HttpClient
>  Issue Type: Improvement
>Reporter: clajder
>Priority: Major
>  Labels: decopression, httpprocessor, stuck, volunteers-wanted
> Fix For: Future, Stuck
>
>
> 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 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
(v8.3.4#803005)

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



[jira] [Updated] (HTTPCLIENT-1822) Support for transparent content decompression

2017-05-02 Thread Oleg Kalnichevski (JIRA)

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

Oleg Kalnichevski updated HTTPCLIENT-1822:
--
Labels: decopression httpprocessor volunteers-wanted  (was: decopression 
httpprocessor)

Transparent content decompression can now be implemented using the new async 
request exec interceptor API. Volunteers welcome.

https://github.com/apache/httpclient/blob/trunk/httpclient5/src/examples/org/apache/hc/client5/http/examples/AsyncClientMessageTrailers.java

Oleg 

> Support for transparent content decompression
> -
>
> Key: HTTPCLIENT-1822
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1822
> Project: HttpComponents HttpClient
>  Issue Type: Improvement
>Reporter: clajder
>  Labels: decopression, httpprocessor, volunteers-wanted
> Fix For: 5.0
>
>
> 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 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.3.15#6346)

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