Returns {
(input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
(input: string | URL | Request, init?: RequestInit): Promise<Response>;
}
A fetch function with optional cookie and cache support.
- (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
Parameters
- input: URL | RequestInfo
Optional
init: RequestInit
Returns Promise<Response>
- (input: string | URL | Request, init?: RequestInit): Promise<Response>
Parameters
- input: string | URL | Request
Optional
init: RequestInit
Returns Promise<Response>
Builds a fetch function with optional cookie and cache support.