Skip to main content

apply_compression

Function apply_compression 

Source
pub fn apply_compression(request: &Request, response: &mut Response)
Expand description

Like apply_gzip, with the content coding negotiated from the request’s Accept-Encoding among those compiled in (DYNAMIC_PREFERENCE): zstd, br or gzip. What the HTTP/1.1, HTTP/2 and HTTP/3 writers call (18.1.0).