Skip to main content

decode

Function decode 

Source
pub fn decode(encoding: &ContentEncoding, body: &Bytes) -> Result<Bytes, String>
Expand description

Decodes a body compressed with encoding. Errors on corrupt or truncated data, with a message naming the codec.