headerContains

fun headerContains(header: String, token: String): Boolean

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.

Return

whether or not @header contains @token

Parameters

header

An HTTP header suitable for parsing with func@header_parse_list

token

a token