-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hyper client: Implement NO_PROXY support
Summary: Implements support for NO_PROXY definitions for proxies specified by HTTP_PROXY / HTTPS_PROXY. This takes [Curl's definition of NO_PROXY](https://everything.curl.dev/usingcurl/proxies/env#no-proxy), e.g * NO_PROXY=".facebook.com" will not proxy connections to www.facebook.com * NO_PROXY="facebook.com" will _also_ not proxy connections to www.facebook.com * Supports defining NO_PROXY in terms of domain names, IP addresses, and IP network definitions (in CIDR format). The implementation initially started off heavily inspired by [`request::NoProxy`](https://github.com/seanmonstar/reqwest/blob/master/src/proxy.rs#L414) but ended up changing a decent amount because of how `hyper::Proxy::Custom` works. Reviewed By: krallin Differential Revision: D45804045 fbshipit-source-id: 569c605e458eeda3ca605d176ca64e3865e3f70a
- Loading branch information
1 parent
63d6c56
commit aebff47
Showing
6 changed files
with
400 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.