headerContains

fun headerContains(name: String, token: String): Boolean

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

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

Return

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

Parameters

name

header name

token

token to look for