Skip to content

HeaderType

Returns the header type for a given header string.

Declaration

Source position: httpprotocol.pp line 156

function HeaderType(AHeader: string) : THeader;

Arguments

Name Description
AHeader The HTTP header name string to parse.

Function result

The header type, or hhUnknown if not recognized.

Description

Converts an HTTP header string to its corresponding THeader enumeration value. Returns hhUnknown if the header is not recognized.

See also

Name Description
HeaderName Returns the string name of an HTTP header.
THeader Enumeration of standard HTTP 1.1 headers.