Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upSwitch from hyper to curl #344
Comments
brson
added
the
initial release
label
Apr 19, 2016
This comment has been minimized.
This comment has been minimized.
|
Not sure if this should block an initial release, but it does seem important. |
This comment has been minimized.
This comment has been minimized.
mhristache
commented
Apr 24, 2016
|
A lot of companies are using proxies for internet access so I think this is very important. |
This comment has been minimized.
This comment has been minimized.
eminence
commented
Apr 24, 2016
|
the other option would be to teach hyper about proxies, but that seems like way more work than switching to curl |
This comment has been minimized.
This comment has been minimized.
mhristache
commented
Apr 24, 2016
|
FWIW, there is > 1 year old issue on hyper regarding proxy support in the client: hyperium/hyper#531 |
This comment has been minimized.
This comment has been minimized.
|
I'm definitely in favor of this because of the proxy support, but the |
xen0n
referenced this issue
Apr 25, 2016
Closed
Provide custom header callback in addition to progress #102
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
|
@peschkaj Cargo uses libcurl, so I'm confident we can make it work on all platforms that matter. |
This comment has been minimized.
This comment has been minimized.
|
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? |
This comment has been minimized.
This comment has been minimized.
|
Or perhaps it makes more sense for the proxy to be on the let mut client = Client::new();
client.set_proxy(host, port); |
This comment has been minimized.
This comment has been minimized.
|
@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. |
This comment has been minimized.
This comment has been minimized.
lilianmoraru
commented
Apr 25, 2016
|
@seanmonstar I think that's the simplest form. |
This comment has been minimized.
This comment has been minimized.
|
@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. |
This was referenced May 6, 2016
This comment has been minimized.
This comment has been minimized.
|
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. |
brson commentedApr 19, 2016
Hyper doesn't support HTTP proxies, while curl does.