Expand description
HTTP content-encoding handling for the proxy: a small Encoding model plus
streaming decode (and, in a later task, encode) so repair operates on plaintext.
Enums§
- Encoding
- An HTTP content coding.
Functions§
- decode_
stream - Wrap a content-encoded byte stream so it yields the DECODED plaintext bytes.
Identity/Unknownpass through unchanged (the caller decides not to repair anUnknown-coded body). - encode_
stream - Re-encode a plaintext byte stream with
enc, flushing after every input chunk so output is emitted promptly (never buffered until end of stream).Identity/Unknownpass through unchanged. Uses fast compression levels (high quality costs ms per call and buys almost nothing on tiny flushed payloads).
Type Aliases§
- Byte
Stream - A boxed byte stream with io errors — the common currency of the codec layer.