sig/plugins/grpc.rbs in httpx-0.22.5 vs sig/plugins/grpc.rbs in httpx-0.23.0
- old
+ new
@@ -37,12 +37,12 @@
def self?.stream: (StreamResponse) { (String) -> void } -> void
| (StreamResponse) -> Enumerable[String]
def self?.encode: (String bytes, ?deflater: Compression::_Deflater?) -> String
- def self?.decode: (String message, encodings: Array[String], encoders: Compression::encodings_registry) -> String
- | (String message, encodings: Array[String], encoders: Compression::encodings_registry) { (String) -> void } -> void
+ def self?.decode: (String message, encodings: Array[String], encoders: Hash[String, Compression::_Compressor]) -> String
+ | (String message, encodings: Array[String], encoders: Hash[String, Compression::_Compressor]) { (String) -> void } -> void
def self?.cancel: (Request) -> void
def self?.verify_status: (StreamResponse | response) -> void
end
@@ -63,10 +63,10 @@
def self.load_dependencies: (singleton(Session)) -> void
module ResponseMethods
def merge_headers: (headers_input trailers) -> void
- def encoders: () -> Compression::encodings_registry
+ def encoders: () -> Hash[String, Compression::_Compressor]
end
module InstanceMethods
def with_channel_credentials: (String ca_path, ?String? key, ?String? cert, **untyped) -> instance