headerContains

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.

bool
headerContains
(
string header
,
string token
)

Parameters

header string

An HTTP header suitable for parsing with funcheader_parse_list

token string

a token

Return Value

Type: bool

whether or not header contains token