Skip to main content

accepts_brotli

Function accepts_brotli 

Source
pub fn accepts_brotli(headers: &HeaderMap) -> bool
Expand description

Check if the request accepts brotli encoding.

Parses the Accept-Encoding header respecting quality values. Returns true only if br is present with quality > 0.