OptionalagentCustom undici dispatcher / agent for this request (Node.js only). Accepts an undici Agent, Pool, or ProxyAgent instance. When set, disables the default connection pool for this request.
OptionalbaseBase URL prepended to relative URLs
OptionalbodyOptionalcacheResponse body cache
OptionalcredentialsCredentials mode for fetch
OptionaldecompressWhether to automatically decompress the response body (gzip/br/deflate). Default: true. Set to false to receive raw compressed bytes.
OptionaldedupeDeduplicate identical in-flight GET requests
OptionalfollowFollow redirects (default: true)
OptionalformForm data — sets Content-Type: application/x-www-form-urlencoded
OptionalharHAR recording
OptionalheadersOptionalhooksLifecycle hooks
OptionaljsonJSON body — serialised automatically, sets Content-Type
OptionalloggerLog all requests (uses hooks internally)
OptionalmaxMax redirects (default: 10)
OptionalmethodOptionalonDownload progress callback
OptionalonUpload progress callback
OptionalprefetchPrefetch hint — fire request before it's awaited
OptionalresponseParse response as json:true / text / blob / arrayBuffer / formData
OptionalretryRetry config
OptionalschemaSchema to validate response body (zod, valibot, or custom)
OptionalsearchURL search params merged into url
OptionalsignalAbortSignal for cancellation
OptionalthrowThrow on non-2xx responses (default: true)
OptionaltimeoutTimeout config
OptionaltransportForce a specific transport
Extra fields for middleware