header_contains


Description:

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 [func@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.