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

TFPCustomHTTPClient.AddHeader

Adds an HTTP header to a headers collection

Declaration

Source position: fphttpclient.pp line 259

public class procedure TFPCustomHTTPClient.AddHeader(

  HTTPHeaders: TStrings;

  const AHeader: string;

  const AValue: string

);

procedure TFPCustomHTTPClient.AddHeader(

  const AHeader: string;

  const AValue: string

);

Arguments

HTTPHeaders

  

The headers collection to add the header to

AHeader

  

The header name

AValue

  

The header value

Arguments

AHeader

  

The header name

AValue

  

The header value

Description

Static utility method to add an HTTP header with the specified name and value to a headers collection. If a header with the same name already exists, its value is updated.

See also

GetHeader

  

Gets the value of a header from a headers collection


Documentation generated on: Jan 27 2026