Function env_variables::for_url
[−]
[src]
pub fn for_url(s: &str) -> Option<String>
Extract proxy parameters for a URL by examining the environment variables.
Most environment variables described here can be defined either with an all-lowercase or an all-uppercase name. If both versions are defined, the all-lowercase name takes precedence
If no_proxy is defined, check the host part of the URL against its components and return
None
if there is any match. The value of no_proxy should be a space- or comma-separated
list of host/domain names or IP addresses for which no proxying should be done, or a single
' * ' (asterisk) which means that proxying is disabled for all hosts.
If the port is not explicitly defined in the proxy URL, the value 8080 is used.