# http_proxy: Add upstream proxy configuration \(\#59222\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/c52d06a8f31623a536b049d0440d830fb54d82d0)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: c52d06a8f31623a536b049d0440d830fb54d82d0

Requested commit: c52d06a8f31623a536b049d0440d830fb54d82d0

Commit: c52d06a8f31623a536b049d0440d830fb54d82d0

Tree: 6316c3d3f0c509c33caa66729d89f7cfb95357e2

Author: Richard Feldman

Committer: GitHub

## Message

```
http_proxy: Add upstream proxy configuration (#59222)

Second of the `http_proxy` stack. Stacked on #59217 — review/merge that
first; this PR's diff is just the upstream-proxy config.

Adds `UpstreamProxy`: parsing of an upstream HTTP proxy from the
environment (`HTTPS_PROXY` / `HTTP_PROXY` / `ALL_PROXY` and lowercase
forms) with `NO_PROXY` bypass matching delegated to the `proxyvars`
crate, basic-auth credentials kept out of `Debug`/`Display`, and
IPv6/default-port normalization. The proxy server (next PR) uses this to
chain outbound connections through a corporate proxy when one is
configured.

Release Notes:

- N/A
```

## Parents

- [a3e15cefac837944640447b9d4f7033ff485adbb](https://git.cafe/gitcafe/zed/commit/a3e15cefac837944640447b9d4f7033ff485adbb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/c52d06a8f31623a536b049d0440d830fb54d82d0?format=markdown)
