@Immutable public class RequestAcceptEncoding extends java.lang.Object implements org.apache.http.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(org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Adds the header
"Accept-Encoding: gzip,deflate" to the request. |
public void process(org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
throws org.apache.http.HttpException,
java.io.IOException
"Accept-Encoding: gzip,deflate" to the request.process in interface org.apache.http.HttpRequestInterceptororg.apache.http.HttpExceptionjava.io.IOExceptionCopyright © 1999-2015 The Apache Software Foundation. All rights reserved.