TFPCustomHTTPClient.AddHeader¶
Adds an HTTP header to a headers collection
Declaration¶
Source position: fphttpclient.pp line 271
public
class procedure AddHeader(HTTPHeaders: TStrings; const AHeader: string;
const AValue: string);
procedure AddHeader(const AHeader: string; const AValue: string);
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.