EMS.ResourceAPI.TEndpointRequestBody

From RAD Studio API Documentation
Jump to: navigation, search

System.TObjectTEndpointRequestBody

Delphi

TEndpointRequestBody = class abstract

C++

class PASCALIMPLEMENTATION TEndpointRequestBody : public System::TObject

Properties

Type Visibility Source Unit Parent
class public
EMS.ResourceAPI.pas
EMS.ResourceAPI.hpp
EMS.ResourceAPI EMS.ResourceAPI

Description

Holds the body of a request.

ContentType indicates the type of content of the body. You can use the following methods to read the content of the body:

Get- Method TryGet- Method Output Type

GetArray

TryGetArray

TJSONArray

GetBytes

TryGetBytes

TBytes

GetObject

TryGetObject

TJSONObject

GetStream

TryGetStream

TStream

GetValue

TryGetValue

TJSONValue

The methods in the Get- Method column raise an EEMSEndpointError exception if they cannot return the body, either because it is empty or because it is not in the required format. The methods in the TryGet- Method column receive an output parameter and return False if they cannot fill the output parameter with the content of the body.