Function soup::header_contains
source · pub fn header_contains(header: &str, token: &str) -> bool
Expand description
Parses @header to see if it contains the token @token (matched case-insensitively).
Note that this can’t be used with lists that have qvalues.
§header
An HTTP header suitable for parsing with
header_parse_list()
§token
a token
§Returns
whether or not @header contains @token