REST.Client.TRESTRequestParameterList.AddHeader
Delphi
function AddHeader(const AName, AValue: string): TRESTRequestParameter;
C++
TRESTRequestParameter* __fastcall AddHeader(const System::UnicodeString AName, const System::UnicodeString AValue);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | REST.Client.pas REST.Client.hpp |
REST.Client | TRESTRequestParameterList |
Description
Adds the pair value of a new header to the HTTP REST request.
AddHeader calls the AddItem method to add a new header parameter to the HTTP REST request Header's collection, with the specified name and value pair.
AName. Name of the header to add to the REST request.AValue. Value of the header to add to the REST request.