Expand description
Request body extraction with transparent decompression.
Clients like Codex CLI send compressed request bodies (gzip or zstd).
Axum’s String extractor rejects these because raw compressed bytes
aren’t valid UTF-8. This module extracts the raw Bytes, decompresses
if needed, and converts to a UTF-8 string.
Functions§
- extract_
body - Extract the request body as a UTF-8 string, decompressing if the
Content-Encodingheader indicates compression.