lib/httpx/plugins/compression/brotli.rb in httpx-0.22.5 vs lib/httpx/plugins/compression/brotli.rb in httpx-0.23.0
- old
+ new
@@ -3,16 +3,16 @@
module HTTPX
module Plugins
module Compression
module Brotli
class << self
- def load_dependencies(_klass)
+ def load_dependencies(klass)
require "brotli"
+ klass.plugin(:compression)
end
- def configure(klass)
- klass.plugin(:compression)
- klass.default_options.encodings.register "br", self
+ def extra_options(options)
+ options.merge(encodings: options.encodings.merge("br" => self))
end
end
module Deflater
module_function