Unit 'fpHTTPClient' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TFPCustomHTTPClient.IndexOfHeader

Returns the index of a header in a headers collection

Declaration

Source position: fphttpclient.pp line 261

public class function TFPCustomHTTPClient.IndexOfHeader(

  HTTPHeaders: TStrings;

  const AHeader: string

):Integer;

function TFPCustomHTTPClient.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

Arguments

AHeader

  

The header name to search for

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

GetHeader

  

Gets the value of a header from a headers collection


Documentation generated on: Jan 27 2026