class RequestAcceptEncoding implements HttpRequestInterceptor {

    public void process(
            final HttpRequest request,
            final HttpContext context) throws HttpException, IOException {

        /* Signal support for Accept-Encoding transfer encodings. */
        request.addHeader("Accept-Encoding", "gzip,deflate");
    }

}