-
Notifications
You must be signed in to change notification settings - Fork 892
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
Switch from hyper to curl #344
Comments
Not sure if this should block an initial release, but it does seem important. |
A lot of companies are using proxies for internet access so I think this is very important. |
the other option would be to teach hyper about proxies, but that seems like way more work than switching to curl |
FWIW, there is > 1 year old issue on hyper regarding proxy support in the client: hyperium/hyper#531 |
I'm definitely in favor of this because of the proxy support, but the |
Looks like curl does work on Windows, but maybe only with MSVC? On Mon, Apr 25, 2016, 00:16 Wang Xuerui notifications@github.com wrote:
Jeremiah Peschka |
@peschkaj Cargo uses libcurl, so I'm confident we can make it work on all platforms that matter. |
Proxy support is easy in the async branch, I can try to add basic support to hyper's sync branch to support this feature. Basic functionality would be: when sending the request, if client.get("http://rustup.rs/path")
.proxy(env::var("HTTP_PROXY").unwrap())
.send() Where Would this work? |
Or perhaps it makes more sense for the proxy to be on the let mut client = Client::new();
client.set_proxy(host, port); |
@seanmonstar That works for me code-wise, though I don't know enough about the use cases to say it's sufficient. Thanks for jumping in. |
@seanmonstar I think that's the simplest form. |
@lilianmoraru it was just an example of rustup looking at an environment variable. Whichever way rustup wants to allow configuring a proxy is out of scope of hyper supporting a proxy. |
Now that TLS support is fixed and HTTP proxy support is on the way, I'm happy to stick with hyper. It'll be good to have such a prominent project out in production using it. |
Hyper doesn't support HTTP proxies, while curl does.
The text was updated successfully, but these errors were encountered: