Expand description
type Proxy Options =
| "none"
| "system"
| { type: "system" }
| {
auth?: ProxyAuth;
headers?: Record<string, string | string[]>;
type: "custom";
uri: string;
}type Proxy Options =
| "none"
| "system"
| { type: "system" }
| {
auth?: ProxyAuth;
headers?: Record<string, string | string[]>;
type: "custom";
uri: string;
}
Upstream proxy configuration.
Two shorthands sidestep the discriminated-union noise for the common cases:
"none"— disable proxy resolution entirely."system"— honorHTTP_PROXY/HTTPS_PROXY/NO_PROXYfrom env.Use the object form for explicit URIs, headers, or basic-auth credentials.