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.