EMS.Services.IEMSResourceResponseContent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

IEMSResourceResponseContent = interface

C++

__interface IEMSResourceResponseContent  : public System::IInterface

Properties

Type Visibility Source Unit Parent
interface
class
public
EMS.Services.pas
EMS.Services.hpp
EMS.Services EMS.Services

Description

Response to a resource request that you executed.

ContentType indicates the internet media type of the response content, StatusCode indicates the status code of the response, and you can use the following methods to read the content of the response:

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 exception if they cannot return the response content, 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 response.