Skip to main content

apply_gzip

Function apply_gzip 

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

If the client accepts gzip and the response body is compressible text, compress every content range in-place and add Content-Encoding: gzip. Also appends Accept-Encoding to the Vary header.