TTMSMCPHTTPServerResponse.HeaderHasBeenWritten Property
Whether the headers have already been sent.
Falseuntil they are.
API unit family: TMS.MCP.HTTPServer
Declaring type: TTMSMCPHTTPServerResponse
Type: Boolean
Syntax
property HeaderHasBeenWritten: Boolean;
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.