Table of Contents

IHttpResponseBodyWriter Interface

Interface for a writer that sends the raw HTTP response body to the client.

Remarks

Implementations handle the low-level transfer of body bytes, including chunked transfer encoding when applicable. The response uses a body writer internally; middleware may replace it through THttpServerResponse.RawWriter to wrap or transform the outgoing body.

Syntax

Unit: Sparkle.HttpServer.Response

IHttpResponseBodyWriter = interface(IInterface);

Methods

Name Description
Flush Flushes any buffered body data, sending it to the client.
Stream Returns the stream to which response body bytes are written.