Expand description
Bounded decompression into a caller-reused result buffer. This convenience API accepts a complete encoded body; wire body streaming is exposed by the codecs.
Structs§
- Decode
Step - A single incremental decode step. Retain input after
consumed, and consume output before calling again. A single coding stages nothing internally; a chain stages between its codings in buffers allocated at construction. - Streaming
Decoder - Incremental decoder for a
Content-Encodingvalue: one coding, or a list of them applied in order (seeStreamingDecoder::from_codings).
Constants§
- MAX_
CODINGS - Content codings one decoder accepts in a chain. A list is attacker-chosen and every coding adds state and a staging buffer; undici stops at five as well.
Functions§
- decode
- Convenience whole-body decode. Cache
StreamingDecoderand useresetfor allocation-free repeated responses instead of constructing one per call.