Datasnap.DSSession.TDSTunnelService.ProcessPOST

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ProcessPOST(Params: TStrings; Content: TArray<Byte>; out JsonResponse: TJSONValue; out CloseConnection: Boolean);

C++

void __fastcall ProcessPOST(System::Classes::TStrings* Params, System::DynamicArray<System::Byte> Content, /* out */ System::Json::TJSONValue* &JsonResponse, /* out */ bool &CloseConnection);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Datasnap.DSSession.pas
Datasnap.DSSession.hpp
Datasnap.DSSession TDSTunnelService

Description

Handles the POST requests.

The ProcessPOST method handles the POST requests, similar to the WRITE operations. The response consists of the session ID and the amount of bytes successfully delivered to the destination. The following table lists the arguments of the ProcessPOST method.


Argument Meaning

Params

HTTP parameters that provide the session ID and, eventually, the content size. The content is expected to be available in the byte stream. A zero session ID is equivalent to a new session. The code generates a new session ID that will be returned as content in the JSON object.

Content

Byte content to be sent to the session's communication channel.

JsonResponse

Contains the session ID and the written data size.

CloseConnection

Specifies whether the server has to signal the client to close the connection.



See Also