Skip to main content

Module tls

Module tls 

Source
Expand description

Production-Grade Pure-Rust TLS Transport for HTTP/1.1 and HTTPS.

Implements memory-safe TLS 1.2 and TLS 1.3 encrypted transport streams using rustls and Mozilla’s webpki-roots, with zero C/OpenSSL dependencies.

Enums§

HttpTransportStream
Abstract transport stream multiplexing between plain TCP and TLS-encrypted connections.

Functions§

create_tls_stream
Creates an encrypted TLS client transport stream wrapping an established TcpStream.
get_or_init_tls_config
Returns a shared, lazily-initialized TLS ClientConfig with Mozilla WebPKI root certificates.