TsgcHTTP3Client › Proprietà › Host
Indirizzo IP o nome DNS del server HTTP/3 a cui il client si connetterà.
property Host: string;
(stringa vuota)
Impostare Host insieme a Port per specificare l'endpoint HTTP/3. In alternativa, chiamare uno dei metodi di richiesta (Get, Post, …) con un URL completo e Host e Port vengono ricavati dall'URL. Host accetta un indirizzo IPv4/IPv6 o un nome DNS. Il nome host viene inviato anche nello pseudo-header :authority e nell'estensione TLS 1.3 SNI, quindi dovrebbe corrispondere al nome comune nel certificato del server.
oClient := TsgcHTTP3Client.Create(nil);
oClient.Host := 'www.example.com';
oClient.Port := 443;