httpx/sig/transcoder/gzip.rbs

28 lines
588 B
Plaintext

module HTTPX
module Transcoder
module GZIP
def self?.encode: (body_encoder body) -> Deflater
def self?.decode: (Response response, ?bytesize: Integer) -> Inflater
class Deflater < Transcoder::Deflater
@compressed_chunk: String
private
def write: (String chunk) -> void
def compressed_chunk: () -> String
end
class Inflater
@inflater: Zlib::Inflate
@bytesize: Integer
def initialize: (Integer | Float bytesize) -> void
def call: (String chunk) -> String
end
end
end
end