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

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.