-
Notifications
You must be signed in to change notification settings - Fork 203
Gzip Compression
Marius Rackwitz edited this page Jan 19, 2016
·
1 revision
FaradayMiddleware::Gzip to automatically decompress response bodies. If the "Accept-Encoding" header wasn't set in the request, this sets it to "gzip,deflate" and appropriately handles the compressed response from the server. This resembles what Ruby 1.9+ does internally in Net::HTTP#get.
This middleware is NOT necessary when these adapters are used:
- net_http on Ruby 1.9+
- net_http_persistent on Ruby 2.0+
- em_http
(Please note: This wiki has been closed, and turned into in-repo Markdown
documents. You can find them in the repository's docs/
directory. This wiki does not take new edits.)