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

TFPCustomHTTPClient.GetHeader

Gets the value of a header from a headers collection

Declaration

Source position: fphttpclient.pp line 263

public class function TFPCustomHTTPClient.GetHeader(

  HTTPHeaders: TStrings;

  const AHeader: string

):string;

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

Arguments

AHeader

  

The header name to retrieve

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

AddHeader

  

Adds an HTTP header to a headers collection


Documentation generated on: Jan 27 2026