TTMSMCPClientTransportHTTP.OnHTTPCustomHeaders Event
Occurs before each request is issued, so that the application can add its own request headers, for instance to carry credentials.
API unit family: TMS.MCP.Client.Transport.HTTP
Declaring type: TTMSMCPClientTransportHTTP
Type: TTMSMCPClientTransportCustomHeaderEvent
Syntax
property OnHTTPCustomHeaders: TTMSMCPClientTransportCustomHeaderEvent;
Remarks
Raised once per request, on the worker that is about to issue it, which means it can run on several workers at the same time and the handler has to be safe to call concurrently. The list handed to the handler is empty and is released by the transport afterwards. The request that ends the session is sent without asking, so these headers are not applied to it.