REST.Client.TRESTRequestParameterList.AddCookie
Delphi
function AddCookie(const AName, AValue: string): TRESTRequestParameter;
C++
TRESTRequestParameter* __fastcall AddCookie(const System::UnicodeString AName, const System::UnicodeString AValue);
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 | 
|---|---|---|---|---|
| function | public | REST.Client.pas REST.Client.hpp | REST.Client | TRESTRequestParameterList | 
説明
HTTP REST 要求に新しいクッキーの名前/値ペアを追加します。
AddCookie では、AddItem を呼び出して、指定された名前と値のペアを新しいクッキー パラメータとして HTTP REST 要求クッキーのコレクションに追加します。
- AName: REST 要求に追加するクッキーの名前です。
- AValue: REST 要求に追加するクッキーの値です。