Module: HTTPX::Plugins::Brotli::ResponseBodyClassMethods

Defined in:
lib/httpx/plugins/brotli.rb

Instance Method Summary collapse

Instance Method Details

#initialize_inflater_by_encoding(encoding, response, **kwargs) ⇒ Object



23
24
25
26
27
# File 'lib/httpx/plugins/brotli.rb', line 23

def initialize_inflater_by_encoding(encoding, response, **kwargs)
  return Brotli.decode(response, **kwargs) if encoding == "br"

  super
end