trillium-compression-v0.3.1
·
36 commits
to main
since this release
Added
- Client-side
Compressionhandler behind the newclientfeature
(trillium_compression::client::Compression). ImplementsClientHandler
bidirectionally:- Responses: advertises
Accept-Encodingon outbound requests and
transparently decodes brotli/gzip/zstd response bodies, stripping
Content-Encodingso callers read plaintext. - Requests (opt-in): compresses the request body and sets
Content-Encoding
when a request encoding is selected — handler-wide via
Compression::with_default_encoding, or per request by setting a
CompressionAlgorithmon the conn's state (which overrides the default).
- Responses: advertises
CompressionAlgorithm::Identity, the identity content-coding. As a per-conn
client state signal it opts a single request out of a configured default
request encoding.