feat(proxy): Adds NO_PROXY environment variable support (#877)

* feat(proxy): Adds NO_PROXY environment variable support

Adds support for loading from the `NO_PROXY` or `no_proxy` environment
variables. This should make reqwest support the system proxy settings.
Please note that I brought in one additional dependency in order to
handle CIDR blocks in the no proxy settings.

Closes #705
This commit is contained in:
Taylor Thomas
2020-06-08 16:32:56 -06:00
committed by GitHub
parent da899e27e1
commit 6914091582
2 changed files with 239 additions and 53 deletions

View File

@@ -82,6 +82,7 @@ mime_guess = "2.0"
percent-encoding = "2.1"
tokio = { version = "0.2.5", default-features = false, features = ["tcp", "time"] }
pin-project-lite = "0.1.1"
ipnet = "2.3"
# TODO: candidates for optional features