Function http_serve::should_gzip [−][src]
Expand 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.