Skip to main content
Table of Contents

TTMSMCPHTTPServerResponse.HeaderHasBeenWritten Property

Whether the headers have already been sent. False until they are.

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

Syntax

TMS.MCP.HTTPServer.hppPascalC++
property HeaderHasBeenWritten: Boolean;
__property bool HeaderHasBeenWritten = {read=FHeaderHasBeenWritten, write=SetHeaderHasBeenWritten, nodefault};

Remarks

Set by TTMSMCPHTTPServerResponse.WriteHeader so the server does not send them a second time. Check it before changing the status code or a header; writing to it directly misreports what has actually gone out.