Table of Contents

THttpServerResponse.OnHeaders Method

Registers a callback to be invoked immediately before the response headers are sent.

Remarks

The callback receives this response and may perform last-minute header adjustments. Multiple callbacks can be registered; they are chained and all run when the headers are sent. The callback parameter is named Proc.

Syntax

Unit: Sparkle.HttpServer.Response

procedure THttpServerResponse.OnHeaders(Proc: THttpOnHeadersProc);

Parameters

<-> Parameter Type Description
Proc THttpOnHeadersProc

See also