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.