Parameters
- proxyUrl: string | undefined
Returns
| {
(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
(input: string | Request | URL, init?: RequestInit): Promise<Response>;
}
| undefined
A custom fetch function using the proxy, or undefined.
- {
(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
(input: string | Request | URL, init?: RequestInit): Promise<Response>;
}
-
- (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
-
Parameters
- input: RequestInfo | URL
Optionalinit: RequestInit
Returns Promise<Response>
- (input: string | Request | URL, init?: RequestInit): Promise<Response>
-
Parameters
- input: string | Request | URL
Optionalinit: RequestInit
Returns Promise<Response>
- undefined
Creates a custom fetch function that routes requests through the given HTTP proxy. Returns
undefinedif no proxy URL is provided.