header
Functions
pub fn get_first_lang_from_accept_language_header(
raw_header: String,
) -> Option(String)
pub fn parse_accept_language_header(
raw_header: String,
) -> List(#(String, Float))
Parses the accept langauge header according to: https://www.rfc-editor.org/rfc/rfc9110#field.accept-language
e.g. fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5