type
FetchProxyOption
type FetchProxyOption =
| string
| URL
| false
| { headers: HeadersInit; respectNoProxy: boolean; url: string | URL }
The proxy a fetch() uses.
- A URL string, a
URL, or{ url, headers, respectNoProxy }selects that proxy. falseconnects directly, even whenHTTP_PROXY/HTTPS_PROXY/ALL_PROXYare set.undefineduses the proxy environment variables.
Referenced types
class URL
The URL interface represents an object providing static methods used for creating object URLs.
The
toString()method on theURLobject returns the serialized URL. The value returned is equivalent to that of href and toJSON.