logo
pub fn sort_encodings(encodings: &Vec<HeaderValue>) -> Vec<Encoding>
Expand description

Sorts the list of encodings by weighting as per https://tools.ietf.org/html/rfc2616#section-14.3. Note that identity encoding is awlays added with a weight of 1 if not already present.