Skip to main content

Module http_client

Module http_client 

Source

Functions§

platform_tls_config
Shared TLS config for every ureq client so OS/enterprise root CAs are honored (#643). ureq’s default RootCerts::WebPki ignores the system store, so requests fail with UnknownIssuer behind TLS-intercepting corporate proxies. Inject this into a ureq::config::Config::builder().tls_config(platform_tls_config()) at each call site — ureq’s builder scope typestate is private, so a shared builder cannot be returned from a function; the shared piece is this TlsConfig.
ureq_agent
Builds a ureq agent from an already-assembled config (kept as a thin, nameable wrapper so call sites read uniformly alongside platform_tls_config).
ureq_agent_with_timeouts
Agent that honors platform roots and bounds only the connection-setup phases (DNS/connect/first-byte) — a large but progressing download stays uncapped.