Sign in Join
FPDoc Onlineexperiment

HeaderType function

In unit HTTPProtocol

Returns the header type for a given header string.

Declaration

pascal
function HeaderType(AHeader: string): THeader

Arguments

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.