mirror of
https://github.com/perstarkse/minne.git
synced 2026-07-01 10:31:34 +02:00
8 lines
248 B
Rust
8 lines
248 B
Rust
use tower_http::compression::CompressionLayer;
|
|
|
|
/// Provides a default compression layer that negotiates encoding based on the
|
|
/// `Accept-Encoding` header of the incoming request.
|
|
pub fn layer() -> CompressionLayer {
|
|
CompressionLayer::new()
|
|
}
|