Class RequestAcceptEncoding
java.lang.Object
org.apache.http.client.protocol.RequestAcceptEncoding
- All Implemented Interfaces:
HttpRequestInterceptor
Class responsible for handling Content Encoding requests in HTTP.
Instances of this class are stateless, therefore they're thread-safe and immutable.
- Since:
- 4.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(HttpRequest request, HttpContext context) Adds the header"Accept-Encoding: gzip,deflate"to the request.
-
Constructor Details
-
RequestAcceptEncoding
public RequestAcceptEncoding()
-
-
Method Details
-
process
Adds the header"Accept-Encoding: gzip,deflate"to the request.- Specified by:
processin interfaceHttpRequestInterceptor- Throws:
HttpExceptionIOException
-