mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-05 00:02:38 -04:00
33 lines
592 B
Plaintext
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
|