httpx/sig/transcoder.rbs

19 lines
445 B
Plaintext

module HTTPX
type bodyIO = _Reader | _Each[String, untyped] | _ToS
module Transcoder
extend HTTPX::Registry[String, Class]
def self.normalize_keys: (string | Symbol, top) { (string, top) -> void } -> void
| (string | Symbol, top) { (string) -> void } -> void
interface _Encoder
def bytesize: () -> Numeric
end
interface _Decoder
def decode: (string) -> String
end
end
end