cargo::util::network::proxy

Function http_proxy

source
pub fn http_proxy(http: &CargoHttpConfig) -> Option<String>
Expand description

Finds an explicit HTTP proxy if one is available.

Favor Cargo’s http.proxy, then Git’s http.proxy. Proxies specified via environment variables are picked up by libcurl. See LIBCURL_HTTP_PROXY_ENVS.