TsgcHTTP2ClientProperties › IPVersion

IPVersion Property

Selects the IP protocol version (IPv4 or IPv6) used for the HTTP/2 TCP connection.

Syntax

property IPVersion: TIdIPVersion read FIPVersion write FIPVersion;

Default Value

Id_IPv4

Remarks

Set to Id_IPv4 to connect over IPv4 or Id_IPv6 for IPv6. The property controls how Host is resolved and the family of the underlying socket used for the HTTP/2 connection.

Example


oHTTP2 := TsgcHTTP2Client.Create(nil);
oHTTP2.Host := 'http2.akamai.com';
oHTTP2.Port := 443;
oHTTP2.TLS := True;
oHTTP2.IPVersion := Id_IPv6;

Back to Properties