pub fn should_gzip(headers: &HeaderMap) -> boolExpand description
Returns iff it’s preferable to use Content-Encoding: gzip when responding to the given
request, rather than no content coding.
Use via should_gzip(req.headers()).
Follows the rules of RFC 7231 section 5.3.4.