Module: HTTPX::Plugins::Compression::Brotli

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

Defined Under Namespace

Modules: BrotliWrapper, Encoder

Class Method Summary collapse

Class Method Details

.configureObject


12
13
14
# File 'lib/httpx/plugins/compression/brotli.rb', line 12

def self.configure(*)
  Compression.register "br", self
end

.decoderObject


48
49
50
# File 'lib/httpx/plugins/compression/brotli.rb', line 48

def decoder
  Decoder.new(BrotliWrapper)
end

.encoderObject


44
45
46
# File 'lib/httpx/plugins/compression/brotli.rb', line 44

def encoder
  Encoder
end

.load_dependencies(klass) ⇒ Object


7
8
9
10
# File 'lib/httpx/plugins/compression/brotli.rb', line 7

def self.load_dependencies(klass)
  klass.plugin(:compression)
  require "brotli"
end