Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1390

It should be easy to use gzip compression

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2.5
    • 4.3 Final
    • Fluent HC
    • None

    Description

      Currently, to use gzip compression, you have to manually set the Accept-Encoding header on the Request, check for the Content-Encoding header on the response and optionally use a GZIPInputStream on asStream().
      As this behavior is already implemented in DecompressingHttpClient (or org.apache.http.client.protocol.RequestAcceptEncoding and org.apache.http.client.protocol.ResponseContentEncoding), a useCompression() method could be added to org.apache.http.client.fluent.Request that wraps a DecompressingHttpClient around Executor.CLIENT in the execute() method.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jkemnade Jochen Kemnade
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: