httpx/sig/transcoder.rbs
2021-01-13 12:27:13 +00:00

19 lines
461 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, ?Proc?) { (string, top) -> void } -> void
| (string | Symbol, top, ?Proc?) { (string) -> void } -> void
interface _Encoder
def bytesize: () -> Numeric
end
interface _Decoder
def decode: (string) -> String
end
end
end