Class: FaradayMiddleware::Gzip
- Inherits:
-
ResponseMiddleware
- Object
- ResponseMiddleware
- FaradayMiddleware::Gzip
- Defined in:
- lib/badbill/faraday_gzip.rb
Instance Method Summary collapse
Instance Method Details
#parse_response?(env) ⇒ Boolean
12 13 14 |
# File 'lib/badbill/faraday_gzip.rb', line 12 def parse_response?(env) super && env[:response_headers]['content-encoding'] == "gzip" end |