pub fn build_proxy_connector(
config: &ProxyConfig,
) -> Result<ProxyAwareConnector, HttpStackError>Expand description
Build a full connector from ProxyConfig.
Disabled→ still returns aProxyConnector, but with no entries;match_proxyalways returnsNone, behaving equivalently to “no proxy”.FromEnv→ readsHTTP_PROXY/HTTPS_PROXY/NO_PROXY(case-insensitive, lowercase preferred, matching curl conventions).Explicit→ uses the given values directly.
§Errors
Returns an error if loading native TLS roots fails, or if a proxy URL from the environment cannot be parsed.