pub mod prewarm;
pub mod priority;
pub mod race;
pub mod resolve;
pub mod ticket_cache;
pub fn with_webpki_root_fallback(builder: reqwest::ClientBuilder) -> reqwest::ClientBuilder {
#[cfg(any(all(unix, not(target_os = "android")), target_os = "windows"))]
{
let certs = webpki_root_certs::TLS_SERVER_ROOT_CERTS
.iter()
.map(|cert| {
reqwest::Certificate::from_der(cert.as_ref())
.expect("webpki root certificate must be valid DER")
})
.collect::<Vec<_>>();
builder.tls_certs_merge(certs)
}
#[cfg(not(any(all(unix, not(target_os = "android")), target_os = "windows")))]
{
builder
}
}