header_contains


Description:

[ Version ( since = "2.50" ) ]
public bool header_contains (string name, string token)

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

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

Parameters:

this

a MessageHeaders

name

header name

token

token to look for

Returns:

true if the header is present and contains token, false otherwise.