The parser should select the body decoder itself from Content-Encoding at the end of parse_header, using the http::zlib/brotli/zstd decode services installed in the system context, instead of having the caller build one and install it through the public set_decoder. A config::decode flag (default true) carries the client's opt-out, and codings without an installed service leave the body as sent.
The parser should select the body decoder itself from
Content-Encodingat the end of parse_header, using thehttp::zlib/brotli/zstddecode services installed in the system context, instead of having the caller build one and install it through the publicset_decoder. Aconfig::decodeflag (default true) carries the client's opt-out, and codings without an installed service leave the body as sent.