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 funcheader_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.