MessageHeaders.headerContains

Checks whether the list-valued header @name is present in @hdrs, and contains a case-insensitive match for @token.

(If @name is present in @hdrs, then this is equivalent to calling soup_header_contains() on its value.)

class MessageHeaders
bool
headerContains
(
string name
,
string token
)

Parameters

name string

header name

token string

token to look for

Return Value

Type: bool

%TRUE if the header is present and contains @token, %FALSE otherwise.

Meta

Since

2.50