Table of Contents

TTMSMCPCustomClientConnection.OnHTTPResponse Event

Occurs for each HTTP response before its payload is interpreted as a protocol message.

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

Syntax

OnHTTPResponse: TTMSMCPClientServerHTTPResponseEvent;

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. The handler can suppress interpretation of the payload. Only the HTTP and server-sent-events transports raise it.

Parameters

Name Description
Sender Connection that received the response.
AResponseCode Status code of the response.
AResponseText Status text that accompanies the code.
AHeaders Response headers, one Name: value entry per line. The list belongs to the transport; read it rather than modifying or freeing it.
AProcessResponse Whether the payload is interpreted as a protocol message. Setting it to False makes the connection discard the payload instead; leaving it as it enters lets processing go on.