Skip to main content

Module stream

Module stream 

Source
Expand description

Driving an ItemEncoder or a Decoder over a stream.

These two functions are the API boundary that keeps tokio-util an implementation detail: a dependent crate hands in a byte stream and gets items back (or vice versa) without ever naming FramedRead, StreamReader or Decoder.

Functionsยง

decode_stream
Decode a stream of body chunks into a stream of items.
encode_stream
Encode a stream of items into a stream of body chunks.