TTMSMCPStreamableHTTPTransport.PublicHost Property
Address clients reach the channel by, when that differs from where it listens. Empty by default.
API unit family: TMS.MCP.Transport.StreamableHTTP
Declaring type: TTMSMCPStreamableHTTPTransport
Type: string
Syntax
property PublicHost: string;
Remarks
Two forms are accepted. A full address including a scheme is used exactly as given, with any trailing slash removed. A bare host, optionally with a port, is completed instead: the scheme is taken from TTMSMCPStreamableHTTPTransport.UseSSL, and the listening port is appended when the value names none. Behind a reverse proxy only the full-address form is correct, because encryption is normally terminated at the proxy and the channel's own encryption setting is therefore False - completing a bare host would publish an unencrypted address for an endpoint clients reach over an encrypted one. Left empty, the channel describes itself as being on localhost at its listening port, which is correct only for a client on the same machine. It affects the addresses published in the discovery and metadata documents and the identifier a token must have been issued for, not where the channel actually listens.