OptionalcontentType
contentType?: string
OptionalqueryParameters
queryParameters?: Record<string, unknown>
Optionalbody
body?: unknown
OptionaltimeoutMs
timeoutMs?: number
OptionalmaxRetries
maxRetries?: number
OptionalwithCredentials
withCredentials?: boolean
OptionalabortSignal
abortSignal?: AbortSignal
OptionalrequestType
requestType?: "json" | "other" | "bytes" | "file" | "form"
OptionalresponseType
responseType?:
| "json"
| "text"
| "arrayBuffer"
| "blob"
| "binary-response"
| "sse"
| "streaming"
Optionalduplex
duplex?: "half"
OptionalfetchFn
fetchFn?: {
(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
(input: string | Request | URL, init?: RequestInit): Promise<Response>;
}
Type Declaration
- (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>
MDN Reference