Skip to main content

decode_stream

Function decode_stream 

Source
pub fn decode_stream<S>(s: S, enc: Encoding) -> ByteStream
where S: Stream<Item = Result<Bytes>> + Send + 'static,
Expand description

Wrap a content-encoded byte stream so it yields the DECODED plaintext bytes. Identity/Unknown pass through unchanged (the caller decides not to repair an Unknown-coded body).