Module: HTTPX::Plugins::Compression::RequestMethods
- Defined in:
- lib/httpx/plugins/compression.rb
Instance Method Summary collapse
Instance Method Details
#initialize ⇒ Object
46 47 48 49 50 51 52 53 54 |
# File 'lib/httpx/plugins/compression.rb', line 46 def initialize(*) super # forego compression in the Range cases if @headers.key?("range") @headers.delete("accept-encoding") else @headers["accept-encoding"] ||= @options.encodings.registry.keys end end |