Table of Contents

THttpRequestStream.Read Method

Reads up to Count bytes of the request body into Buffer and advances the position.

Syntax

Unit: Sparkle.HttpServer.Request

function THttpRequestStream.Read(var Buffer: ; Count: Integer): Integer; overload; override;

Parameters

<-> Parameter Type Description
var Buffer The destination buffer that receives the bytes read.
Count Integer The maximum number of bytes to read.

Returns

The number of bytes actually read; 0 when the end of the body has been reached.

See also