Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Https_eioSourceTLS/CA setup errors, matching ca-certs' and tls's own error shape. HTTPS connections fail closed if no system CA bundle can be found; certificate verification is never silently disabled.
type https_wrapper =
Uri.t ->
[ Eio.Flow.two_way_ty | Eio.Resource.close_ty ] Eio.Std.r ->
Tls_eio.tThe exact shape cohttp-eio's client expects for its ~https hook.
Build a fresh HTTPS wrapper: detect the system CA bundle (via ca-certs) and construct a Tls.Config.client. Does not seed the RNG or cache its result — most callers want https_for_uri instead.
Return Some wrapper for https:// URIs, None otherwise. Seeds Mirage_crypto_rng on first use (a real TLS handshake cannot generate key/nonce material before that) and caches the built wrapper across calls, domain-safely.
Exposed only so tests can force a cold cache before exercising the first-use domain race. Not part of the module's intended API.