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
12
13
14
|
# File 'lib/httpx/plugins/compression/brotli.rb', line 12
def self.configure(*)
Compression.register "br", self
end
|
.encoder ⇒ Object
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
|