Table of Contents

TTMSMCPServer.ClientSupportsExtension Method

Indicates whether the client whose request is being handled on the calling thread declared support for an extension. Use it to offer extension behavior only to clients that understand it.

API unit family: TMS.MCP.Server Declaring type: TTMSMCPServer Inherited from: TTMSMCPCustomServer

Overloads

Overload 1

Indicates whether the client whose request is being handled on the calling thread declared support for an extension. Use it to offer extension behavior only to clients that understand it.

function ClientSupportsExtension(const AExtensionId: string): Boolean; overload;

Remarks

Always returns False outside a request and on transports without sessions, because there is no client to test against.

Parameters

Name Description
AExtensionId Extension identifier to test.

Returns

True when the current client declared the extension.

Overload 2

Indicates whether the client of a specific session declared support for an extension, regardless of which request is being handled.

function ClientSupportsExtension(const ASessionId, AExtensionId: string): Boolean; overload;

Parameters

Name Description
ASessionId Identifier of the session to test.
AExtensionId Extension identifier to test.

Returns

True when that client declared the extension; False when either argument is empty or the session is unknown.