httpx/sig/transcoder/chunker.rbs
2020-11-24 00:42:54 +00:00

33 lines
592 B
Plaintext

module HTTPX::Transcoder
module Chunker
def self?.encode: (_Encoder chunks) -> Encoder
class Encoder
@raw: _Each[String]
include _Each[String]
private
def initialize: (_Encoder chunks) -> untyped
end
class Decoder
include _ToS
include _Each[String]
def finished?: () -> bool
def empty?: () -> bool
def <<: (string) -> void
def clear: () -> void
private
def initialize: (String, bool) -> untyped
| (String) -> untyped
def nextstate: (Symbol) -> void
end
end
end