Function decompress_body

Source
pub fn decompress_body(
    header: Option<&str>,
    body: Bytes,
) -> Result<Bytes, ErrorMessage>
Expand description

Decompresses the body based on the Content-Encoding header.

Supports gzip, deflate, snappy, zstd, and identity (no compression).