Skip to main content

HttpClientOptions

type HttpClientOptions​

How the SDK should build the HTTP client backing a connection.

type HttpClientOptions struct {
// Additional DER-encoded CA certificates to trust, on top of the platform trust store and the
// bundled roots.
ExtraRootCertificates [][]byte
// Ignore the platform trust store, trusting only the bundled roots and
// `extra_root_certificates`. Combined with `exclude_bundled_roots`, only
// `extra_root_certificates` is trusted, which must then be non-empty.
ExcludePlatformRoots bool
// Ignore the bundled Mozilla roots, trusting only the platform trust store and
// `extra_root_certificates`. Combined with `exclude_platform_roots`, only
// `extra_root_certificates` is trusted, which must then be non-empty.
ExcludeBundledRoots bool
// Total request timeout in milliseconds. `None` leaves it unbounded.
TimeoutMs *uint64
// Replaces the `User-Agent` the bindings would otherwise send.
UserAgent *string
}

func (*HttpClientOptions) Destroy​

func (r *HttpClientOptions) Destroy()