pub fn pick_encoding(
accept: &str,
path: &Path,
) -> Option<(&'static str, PathBuf)>Expand description
Pick the best encoding for a request: reads the client’s
Accept-Encoding (token presence only, no q-value arithmetic -
documented limitation) against the sidecars that exist for path.
Preference: dcz (dictionary-compressed) > br > zstd > gz.