@Immutable public class RequestAcceptEncoding extends 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, IOException
"Accept-Encoding: gzip,deflate"
to the request.process
in interface org.apache.http.HttpRequestInterceptor
org.apache.http.HttpException
IOException
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.