# std.http.Client: enhance proxy support · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/1afeada2d95e50efe651bd6227719ca4003dad96)

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

Visibility: public

Requested revision: 1afeada2d95e50efe651bd6227719ca4003dad96

Requested commit: 1afeada2d95e50efe651bd6227719ca4003dad96

Commit: 1afeada2d95e50efe651bd6227719ca4003dad96

Tree: 0799938787b302420653064771942bb589546b36

Author: Nameless

Committer: Nameless

## Message

```
std.http.Client: enhance proxy support

adds connectTunnel to form a HTTP CONNECT tunnel to the desired host.
Primarily implemented for proxies, but like connectUnix may be called by
any user.

adds loadDefaultProxies to load proxy information from common
environment variables (http_proxy, HTTP_PROXY, https_proxy, HTTPS_PROXY,
all_proxy, ALL_PROXY).
- no_proxy and NO_PROXY are currently unsupported.

splits proxy into http_proxy and https_proxy, adds headers field for
arbitrary headers to each proxy.

```

## Parents

- [7d50634e0ad4355e339bc243a2e2842693e133f9](https://git.cafe/gitcafe/zig/commit/7d50634e0ad4355e339bc243a2e2842693e133f9?format=markdown)

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