Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
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
Attachments
Issue Links
- is duplicated by
-
HTTPCLIENT-2239 setContentCompressionEnabled(true) does not work
- Resolved
-
HTTPCLIENT-1819 org.apache.http.impl.client.DecompressingHttpClient should have an nio counterpart: DecompressingHttpAsyncClient
- Resolved
-
HTTPCLIENT-2332 Example of decompressing async response
- Resolved