Http module

has_token

procedure · 1 overloadSource

True when a comma-separated header value (Connection, Upgrade, Accept-Encoding...) lists token, compared without regard to case. Parameters after ; are ignored.

has_token :: (value: string, token: string) -> bool

True when a comma-separated header value (Connection, Upgrade, Accept-Encoding...) lists token, compared without regard to case. Parameters after ; are ignored.

Parameters

value: string
token: string

Returns

bool

See also