Classes and Modules
Public Class methods
extra_options(options)
[show source]
# File lib/httpx/plugins/brotli.rb 36 def self.extra_options(options) 37 options.merge(supported_compression_formats: %w[br] + options.supported_compression_formats) 38 end
Public Instance methods
decode(_response, **)
[show source]
# File lib/httpx/plugins/brotli.rb 44 def decode(_response, **) 45 ::Brotli.method(:inflate) 46 end
encode(body)
[show source]
# File lib/httpx/plugins/brotli.rb 40 def encode(body) 41 Deflater.new(body) 42 end
load_dependencies(*)
[show source]
# File lib/httpx/plugins/brotli.rb 32 def load_dependencies(*) 33 require "brotli" 34 end