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
c52d06a8f3Richard Feldman committed on 6/15/2026, 9:00:52 PM· committed by GitHubparenta3e15ce
6 files changedLine totals unavailable