REST.Client.TRESTRequestParameterList.AddBody
Delphi
procedure AddBody(const ABodyContent: string; AContentType: TRESTContentType = ctNone); overload;
procedure AddBody<T: class, constructor>(const AObject: T; AOwnsObject: TRESTObjectOwnership = ooApp); overload;
procedure AddBody(const AObject: TJsonObject; AOwnsObject: TRESTObjectOwnership = ooApp); overload;
procedure AddBody(const ABodyContent: TStream; AContentType: TRESTContentType = ctNone; AOwnsStream: TRESTObjectOwnership = ooCopy); overload;
C++
void __fastcall AddBody(const System::UnicodeString ABodyContent, Rest::Types::TRESTContentType AContentType = (Rest::Types::TRESTContentType)(0x0))/* overload */;
template<typename T> void __fastcall AddBody(const T AObject, Rest::Types::TRESTObjectOwnership AOwnsObject = (Rest::Types::TRESTObjectOwnership)(0x2))/* overload */;
void __fastcall AddBody(System::Json::TJSONObject* const AObject, Rest::Types::TRESTObjectOwnership AOwnsObject = (Rest::Types::TRESTObjectOwnership)(0x2))/* overload */;
void __fastcall AddBody(System::Classes::TStream* const ABodyContent, Rest::Types::TRESTContentType AContentType = (Rest::Types::TRESTContentType)(0x0), Rest::Types::TRESTObjectOwnership AOwnsStream = (Rest::Types::TRESTObjectOwnership)(0x0))/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | REST.Client.pas REST.Client.hpp |
REST.Client | TRESTRequestParameterList |
説明
ABodyContent を本体パラメータとしてリクエストに追加します。
既存の本体パラメータは、置き換えられたり、削除されたりはしません。