MessageHeaders.headerEquals

Checks whether the header @name is present in @hdrs and is (case-insensitively) equal to @value.

class MessageHeaders
bool
headerEquals
(
string name
,
string value
)

Parameters

name string

header name

value string

expected value

Return Value

Type: bool

%TRUE if the header is present and its value is @value, %FALSE otherwise.

Meta

Since

2.50