Documentation
¶
Overview ¶
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureTLS ¶
func ConfigureTLS(client Client, certificates []tls.Certificate, caCertificate []byte, trustAll bool)
ConfigureTLS configures the given client with given certificates and caCertificate. If trustAll is true, the client will skip verification of the certificate chain.
func ForceHTTP2 ¶
func ForceHTTP2(client Client, certificates []tls.Certificate, caCertificate []byte, trustAll bool)
ForceHTTP2 configures the given client exclusively with a HTTP/2 transport. The other options are passed to ConfigureTLS. If certificates is nil, the client will be configured with H2C (HTTP/2 over clear-text).
Types ¶
Click to show internal directories.
Click to hide internal directories.