Table of Contents

TTMSMCPHTTPServerConnection.ReadBytes Method

Reads bytes from the connection into a buffer.

API unit family: TMS.MCP.HTTPServer Declaring type: TTMSMCPHTTPServerConnection

Syntax

procedure ReadBytes(var ABuffer: TBytes; ALength: Integer); virtual; abstract;

Remarks

Implemented by the platform's own server. Rarely needed, because the request body is available through the request itself.

Parameters

Name Description
ABuffer Buffer receiving the bytes read.
ALength Number of bytes to read.

Exceptions

Exception Description
Exception Raised when the connection has already been closed by the client.