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

Projects
None yet
2 participants
@inejge
Copy link
Contributor

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

This comment has been minimized.

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

This comment has been minimized.

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

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@inejge inejge deleted the inejge:env-proxy branch Jul 31, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.