HoneyryderChuck d501840669 registering the supported encodings of the compression plugin per
session

In order not to leak these into other sessions, one keeps a registry
around as a session option. This will cascade into the request and
response encoding routines.
2021-03-05 19:04:09 +00:00

30 lines
653 B
Plaintext

module HTTPX
module Plugins
module Compression
module GZIP
def self.load_dependencies: (singleton(Session)) -> void
def self.configure: (singleton(Session)) -> void
def self?.deflater: () -> _Deflater
def self?.inflater: (Numeric bytesize) -> Inflater
class Deflater
include _Deflater
@compressed_chunk: String
private
def initialize: () -> untyped
def write: (string) -> void
def compressed_chunk: () -> String
end
class Inflater
include _Inflater
end
end
end
end
end