Module: HTTPX::Plugins::Brotli::RequestBodyClassMethods

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

Instance Method Summary collapse

Instance Method Details

#initialize_deflater_body(body, encoding) ⇒ Object



15
16
17
18
19
# File 'lib/httpx/plugins/brotli.rb', line 15

def initialize_deflater_body(body, encoding)
  return Brotli.encode(body) if encoding == "br"

  super
end