macro_rules! brotli {
() => { ... };
}Expand description
Brotli compression salvo’s hoop.
Usage:
use salvo::Router;
use cc_utils::brotli;
let router = Router::with_hoop(brotli!()).path("new-compressed-json").get(hello_compressed_json);macro_rules! brotli {
() => { ... };
}Brotli compression salvo’s hoop.
Usage:
use salvo::Router;
use cc_utils::brotli;
let router = Router::with_hoop(brotli!()).path("new-compressed-json").get(hello_compressed_json);