Sign in Join
FPDoc Onlineexperiment

TFPCustomHTTPClient.IndexOfHeader function

Member of TFPCustomHTTPClientpublicIn unit fpHTTPClient

Returns the index of a header in a headers collection

Declaration

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

Arguments

HTTPHeaders

The headers collection to search in

AHeader

The header name to search for

Function result

The index of the header, or -1 if not found

Description

Static utility method to find the index of a header with the specified name in a headers collection. Returns -1 if the header is not found.

See also

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