Sign in Join
FPDoc Onlineexperiment

TFPCustomHTTPClient.GetHeader function

Member of TFPCustomHTTPClientpublicIn unit fpHTTPClient

Gets the value of a header from a headers collection

Declaration

pascal
class function GetHeader(HTTPHeaders: TStrings; const AHeader: string)
: string
function GetHeader(const AHeader: string): string

Arguments

HTTPHeaders

The headers collection to search in

AHeader

The header name to retrieve

Function result

The header value, or empty string if not found

Description

Static utility method to retrieve the value of a header with the specified name from a headers collection. Returns an empty string if the header is not found.

See also

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