MessageHeaders.headerEquals

bool headerEquals(string name, string value)

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

Parameters

nameheader name
valueexpected value

Returns

true if the header is present and its value is

value, false otherwise.