Skip to main content

response_already_encoded

Function response_already_encoded 

Source
pub(crate) fn response_already_encoded(ctx: &Context) -> bool
Expand description

Whether the response already carries a content-encoding other than identity. Compressing twice (or compressing opaque encoded bytes) is never wanted, whatever the encoding is — so an unknown value also counts as encoded.