module HTTPX::Plugins::Compression::Brotli

  1. lib/httpx/plugins/compression/brotli.rb

Methods

Public Class

  1. configure
  2. load_dependencies

Public Instance

  1. decoder
  2. encoder

Public Class methods

configure (*)
[show source]
   # File lib/httpx/plugins/compression/brotli.rb
12 def self.configure(*)
13   Compression.register "br", self
14 end
load_dependencies (klass)
[show source]
   # File lib/httpx/plugins/compression/brotli.rb
 7 def self.load_dependencies(klass)
 8   klass.plugin(:compression)
 9   require "brotli"
10 end

Public Instance methods

decoder ()
[show source]
   # File lib/httpx/plugins/compression/brotli.rb
48 def decoder
49   Decoder.new(BrotliWrapper)
50 end
encoder ()
[show source]
   # File lib/httpx/plugins/compression/brotli.rb
44 def encoder
45   Encoder
46 end