TsgcHTTP3Client › Properties › Host

Host Property

IP address or DNS name of the HTTP/3 server the client is connected to.

Syntax

property Host: string read FHost;

Type

string

Default

(empty string)

Remarks

This property is read-only. It is set by Connect and reports the host of the current connection, so it cannot be assigned to select a server.

To choose the server, either pass the host to the Connect host overload, or simply call any verb method with an absolute URL: the host is decoded from the URL and the connection is opened on demand.

The value persists after Disconnect and is replaced on the next connection.

Example



oClient.Connect('www.example.com', 443);

ShowMessage(oClient.Host); // www.example.com

Back to Properties