Skip to main content

trust_roots

Function trust_roots 

Source
pub fn trust_roots() -> Vec<Certificate>
Expand description

The trust anchors every SDK reqwest client verifies a server against: the bundled Mozilla root set (webpki-root-certs), the same release of the same bundle the HTTP/3 leg trusts, so a server is trusted or refused alike over TCP and QUIC. reqwest 0.13’s rustls would otherwise consult the OS store instead.

The DER bytes are copied out of the bundle once per process; reqwest parses them into its root store on every client build.