@Immutable public class RequestAcceptEncoding extends java.lang.Object implements HttpRequestInterceptor
Instances of this class are stateless, therefore they're thread-safe and immutable.
| Constructor and Description |
|---|
RequestAcceptEncoding() |
| Modifier and Type | Method and Description |
|---|---|
void |
process(HttpRequest request,
HttpContext context)
Adds the header
"Accept-Encoding: gzip,deflate" to the request. |
public void process(HttpRequest request, HttpContext context) throws HttpException, java.io.IOException
"Accept-Encoding: gzip,deflate" to the request.process in interface HttpRequestInterceptorrequest - the request to preprocesscontext - the context for the requestHttpException - in case of an HTTP protocol violationjava.io.IOException - in case of an I/O error