lib/httpx/plugins/compression/brotli.rb in httpx-0.12.0 vs lib/httpx/plugins/compression/brotli.rb in httpx-0.13.0
- old
+ new
@@ -2,16 +2,18 @@
module HTTPX
module Plugins
module Compression
module Brotli
- def self.load_dependencies(klass)
- klass.plugin(:compression)
- require "brotli"
- end
+ class << self
+ def load_dependencies(klass)
+ klass.plugin(:compression)
+ require "brotli"
+ end
- def self.configure(*)
- Compression.register "br", self
+ def configure(klass)
+ klass.default_options.encodings.register "br", self
+ end
end
module Deflater
module_function