Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the env_proxy crate for proxy environment variable handling #598

Merged
merged 3 commits into from
Jul 21, 2016

Conversation

inejge
Copy link
Contributor

@inejge inejge commented Jul 19, 2016

The crate env_proxy encapsulates the rules for selecting the appropriate proxy server for a target URL according to the contents of the current environment, closely following the convention used by curl. This PR replaces the local (and incomplete) proxy determination function with the one provided by that crate.

@inejge
Copy link
Contributor Author

inejge commented Jul 20, 2016

Should've referenced #401, but I wasn't aware of it. env_proxy replicates curl's env var handling (as documented in the man page) faithfully. As for the README, would you prefer a short section by itself, say "Proxy support" (after "Environment variables"?), or a paragraph somewhere else? I can add the commit with the change to this PR.

@brson
Copy link
Contributor

brson commented Jul 21, 2016

@inejge This looks awesome. For the README, how about another 'working with' section, 'Working with HTTP proxies', after 'working with custom toolchains'? Can you make it a followup? I want to merge this one right now!

@brson brson merged commit 05525da into rust-lang:master Jul 21, 2016
@inejge inejge deleted the env-proxy branch July 31, 2016 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants