sig/plugins/compression.rbs in httpx-0.12.0 vs sig/plugins/compression.rbs in httpx-0.13.0
- old
+ new
@@ -1,9 +1,9 @@
module HTTPX
module Plugins
module Compression
- extend Registry[Symbol, Class]
+ type encodings_registry = Registry[Symbol, Class]
type deflatable = _Reader | _ToS
interface _Deflater
def deflate: (deflatable, _Writer, chunk_size: Integer) -> void
@@ -14,15 +14,17 @@
def inflate: (string) -> String
def initialize: (Numeric bytesize) -> untyped
end
- def self.load_dependencies: (singleton(Session)) -> void
+ def self.configure: (singleton(Session)) -> void
interface _CompressionOptions
def compression_threshold_size: () -> _Integer?
def compression_threshold_size=: (int) -> int
- def with_compression_threshold_size: (int) -> instance
+
+ def encodings: () -> encodings_registry?
+ def encodings=: (encodings_registry) -> encodings_registry
end
def self.extra_options: (Options) -> (Options & _CompressionOptions)