Table of Contents

TTMSMCPCustomClientConnection.OnBeforeHTTPRequest Event

Occurs before each HTTP request, so the application can add its own headers.

API unit family: TMS.MCP.Client.Connection Declaring type: TTMSMCPCustomClientConnection

Syntax

OnBeforeHTTPRequest: TTMSMCPClientServerBeforeHTTPRequestEvent;

Remarks

Raised on the thread that performs the exchange, which is not the main thread, so a handler must not touch the user interface directly. Only the HTTP and server-sent-events transports raise it.

Parameters

Name Description
Sender Connection that is about to send the request.
ACustomHeaders Header list the handler extends, one Name: value entry per line. It belongs to the transport, so add lines to it rather than replacing or freeing it; every line left behind is sent with the request.