REST.Client.TRESTRequestParameterList.AddCookie
Delphi
function AddCookie(const AName, AValue: string): TRESTRequestParameter;
C++
TRESTRequestParameter* __fastcall AddCookie(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 cookie to the HTTP REST request.
AddCookie calls AddItem to add a new cookie parameter to the HTTP REST request Cookies collection, with the specified name and value pair.
AName. Name of the cookie to add to the REST request.AValue. Value of the cookie to add to the REST request.