-
Type:
Improvement
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Component/s: None
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
- is duplicated by
-
HTTPCLIENT-1819 org.apache.http.impl.client.DecompressingHttpClient should have an nio counterpart: DecompressingHttpAsyncClient
-
- Resolved
-