Table of Contents

TTMSMCPHTTPServerResponse.WriteHeader Method

Sends the status line and the headers now, without waiting for the handler to return.

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

Syntax

procedure WriteHeader; virtual; abstract;

Remarks

Implemented by the platform's own server. Call it when the handler goes on writing to the connection itself - to hold a stream open, for instance. Afterwards the status code and the headers can no longer be changed, and TTMSMCPHTTPServerResponse.HeaderHasBeenWritten reports True.