Expand description
TLS connector via rustls.
When the tls-rustls feature is enabled, this module provides HTTPS
support using hyper_rustls with Mozilla root certificates. No OpenSSL
system dependency is required.
§Custom CA certificates
For enterprise/internal PKI, use tls_config_with_extra_roots to create
a rustls::ClientConfig with additional trust anchors, then pass it to
the client builder.
Functions§
- build_
https_ client_ with_ config - Builds an HTTPS-capable hyper client using a custom TLS configuration and the default connection timeout.
- build_
https_ client_ with_ connect_ timeout - Builds an HTTPS-capable hyper client with a custom TLS configuration and connection timeout applied to the underlying TCP connector.
- default_
tls_ config - Builds a default
ClientConfigwith Mozilla root certificates. - tls_
config_ with_ extra_ roots - Builds a
ClientConfigwith extra CA certificates added to the Mozilla root store.
Type Aliases§
- Https
Client - Type alias for the HTTPS-capable hyper client.