TTMSMCPStreamableHTTPTransport.GetServerUrl Method
Returns the base address the channel should be addressed by.
API unit family: TMS.MCP.Transport.StreamableHTTP
Declaring type: TTMSMCPStreamableHTTPTransport
Syntax
function GetServerUrl: string;
Remarks
This is what the published discovery and metadata documents are built from, so it has to be the address clients actually reach - not necessarily the one the channel listens on. See TTMSMCPStreamableHTTPTransport.PublicHost for what to set behind a reverse proxy.
Returns
The value of TTMSMCPStreamableHTTPTransport.PublicHost when it is a full address, with any trailing slash removed. Otherwise the scheme - reflecting TTMSMCPStreamableHTTPTransport.UseSSL - followed by the public host with the listening port appended when it names no port of its own, or by localhost and the port when no public host is set at all.