Table of Contents

THttpRequestStream Class

Abstract TStream descendant that exposes an HTTP request body as a forward-only, read-only stream.

Remarks

The stream cannot be written to and cannot seek to an arbitrary position; only reads that advance the current position are supported. Concrete descendants implement the actual reading by overriding the protected content-length and read primitives.

Syntax

Unit: Sparkle.HttpServer.Request

THttpRequestStream = class(TStream);

Methods

Name Description
Read Reads up to Count bytes of the request body into Buffer and advances the position.
Seek Reports the current position but does not allow moving to an arbitrary position.
Write Not supported. The request stream is read-only.