Function webmachine_rust::content_negotiation::sort_encodings [] [src]

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

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.