Skip to main content

decompress

Function decompress 

Source
pub fn decompress(blob: &CompressedBody) -> Result<Vec<u8>, CompressionError>
Expand description

Recover the original bytes from a CompressedBody — the inverse of compress / chain. Test-only and audit helper; production attack flow only needs the compress direction.

§Errors

Returns CompressionError if any decoder fails or the content_encoding string lists an unknown algorithm.