Body compression for trillium.rs
Currently, this crate only supports compressing outbound bodies with the brotli and gzip algorithms, although more algorithms may be added in the future. The correct algorithm will be selected based on the Accept-Encoding header sent by the client, if one exists.
If both brotli and gzip are supported by a client, brotli will be used preferentially.
Trillium handler for compression
Algorithms supported by this crate