EMS.Services.IEMSResourceRequest.CreateRequestContent
Delphi
function CreateRequestContent(const AJSON: TJSONValue): IEMSResourceRequestContent; overload;
function CreateRequestContent(const AContentType: string; const AStream: TStream): IEMSResourceRequestContent; overload;
function CreateRequestContent(const AContentType: string; const ABytes: TBytes): IEMSResourceRequestContent; overload;
C++
virtual _di_IEMSResourceRequestContent __fastcall CreateRequestContent(System::Json::TJSONValue* const AJSON) = 0 /* overload */;
virtual _di_IEMSResourceRequestContent __fastcall CreateRequestContent(const System::UnicodeString AContentType, System::Classes::TStream* const AStream) = 0 /* overload */;
virtual _di_IEMSResourceRequestContent __fastcall CreateRequestContent(const System::UnicodeString AContentType, const System::DynamicArray<System::Byte> ABytes) = 0 /* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | EMS.Services.pas EMS.Services.hpp |
EMS.Services | IEMSResourceRequest |
説明
EMS リソース要求のペイロードの内容を作成します。
CreateRequestContent メソッドは、次のようにオーバーロードされています。
- 第 1 のオーバーロード メソッドでは、JSON オブジェクト
AJSON
から要求のペイロードを作成します。この要求のコンテンツ タイプはapplication/json
です。 - 第 2 のオーバーロード メソッドでは、ストリーム
AStream
から要求のペイロードを作成します。ペイロードのコンテンツ タイプ(AContentType
)を指定します。 - 第 3 のオーバーロード メソッドでは、バイト配列
ABytes
から要求のペイロードを作成します。ペイロードのコンテンツ タイプ(AContentType
)を指定します。
CreateRequestContent では、リソースからの応答を読み取るための IEMSResourceRequestContent を返します。