Optionalcontent Type
contentType ?: string
headers ?: Record < string , unknown >
Optional Deprecatedquery Parameters
queryParameters ?: Record < string , unknown >
Optionalquery String
queryString ?: string
Optionalbody
body ?: unknown
Optionaltimeout Ms
timeoutMs ?: number
Optionalmax Retries
maxRetries ?: number
Optionalwith Credentials
withCredentials ?: boolean
Optionalabort Signal
abortSignal ?: AbortSignal
Optionalrequest Type
requestType ?: "bytes" | "json" | "file" | "form" | "other"
Optionalresponse Type
responseType ?: | "arrayBuffer" | "blob" | "json" | "text" | "binary-response" | "sse" | "streaming"
Optionalduplex
duplex ?: "half"
Optionalfetch Fn
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 >
Prefer
queryString(produced bycore.url.queryBuilder()). Retained for backwards compatibility with custom fetchers and callers that still construct request args with a query-parameter object.