TsgcHTTP2ClientProprietà › TLS

TLS Proprietà

Abilita una connessione TLS sicura, normalmente richiesta dai server HTTP/2.

Sintassi

property TLS: Boolean read FTLS write FTLS;

Valore predefinito

True

Note

Impostare TLS su True per negoziare HTTP/2 su TLS (il protocollo ALPN h2); questo è ciò che praticamente tutti i server HTTP/2 pubblici richiedono. Impostarlo su False solo quando il server supporta esplicitamente HTTP/2 in chiaro (h2c). Quando TLS è abilitato, TLSOptions controlla certificati, verifica, versione TLS e se utilizzare OpenSSL o SChannel come IOHandler. Passare un URL https:// completo a un metodo di richiesta imposta automaticamente TLS su True.

Esempio


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

Torna alle Proprietà