Function webmachine_rust::content_negotiation::sort_media_charsets [] [src]

pub fn sort_media_charsets(charsets: &Vec<HeaderValue>) -> Vec<Charset>

Sorts the list of charsets by weighting as per https://tools.ietf.org/html/rfc2616#section-14.2. Note that ISO-8859-1 is added as a default with a weighting of 1 if not all ready supplied.