TsgcHTTP3Client › Properties › Host
IP address or DNS name of the HTTP/3 server the client is connected to.
property Host: string read FHost;
string
(empty string)
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.
oClient.Connect('www.example.com', 443);
ShowMessage(oClient.Host); // www.example.com