modo-rs 0.8.0

Rust web framework for small monolithic apps
Documentation
1
2
3
4
5
6
7
8
use tower_http::compression::CompressionLayer;

/// Returns a compression layer that automatically compresses response bodies.
///
/// Supports gzip, deflate, brotli, and zstd based on the `Accept-Encoding` header.
pub fn compression() -> CompressionLayer {
    CompressionLayer::new()
}