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