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