Skip to main content

accepts_encoding

Function accepts_encoding 

Source
pub(crate) fn accepts_encoding(ctx: &Context, token: &str) -> bool
Expand description

Whether the request’s Accept-Encoding allows token (e.g. "gzip", "br"): the token (or *) must be listed with a non-zero q value. A missing header means the client did not opt in — no compression.