TTMSMCPSetCustomHeaderEvent Event Type
Adds headers to an answer before it is sent.
API unit family: TMS.MCP.Transport.StreamableHTTP
Remarks
Raised only for requests addressed to the protocol endpoint, and only after one has been handled - not for a rejected request, and not for the discovery or metadata addresses. The status code and body are already decided by this point, so use it to add headers rather than to change the outcome. Runs on a connection thread.
Parameters
| Name | Description |
|---|---|
Sender |
Channel that is answering. |
ARequest |
The request being answered, for deciding what to add. |
AResponse |
The answer. Add headers with TTMSMCPHTTPServerHeaders.SetHeader or TTMSMCPHTTPServerHeaders.AddValue. |