Expand description
HTTP client helpers reused across aube crates.
The npm registry path is dominated by cold TCP+TLS handshakes,
per-origin DNS lookups, and per-request priority noise. Each helper
here addresses one of those costs without owning a reqwest::Client
itself — call sites keep their builders and pass them in.
Killswitch convention follows aube-util: every optimization that
defaults ON ships an AUBE_DISABLE_* env var. Each killswitch is
named in the doc comment of the function reading it so cargo doc
enumerates them.
Modules§
- prewarm
- Speculative TCP+TLS handshake before the first real request.
- priority
- RFC 9218 HTTP priority signal builder.
- race
- Speculative parallel GET: issue N concurrent requests for the same
resource and return the first successful response, aborting the
rest. Trades extra bandwidth for tail-latency reduction on flaky
networks where one of
Nmirror URLs lands fast. - resolve
- DNS pre-resolution and anycast pinning helpers.
- ticket_
cache - Cross-invocation TLS session ticket cache.
Functions§
- with_
webpki_ root_ fallback - Add Mozilla’s baked-in root bundle as extra trust roots while keeping reqwest’s rustls-platform-verifier OS trust store active.