Expected parsed response body type.
OptionalbaseOverride base URL for this request.
OptionalheadersAdditional / override headers.
OptionalparamsQuery parameters (merged with instance defaults).
OptionalbodyRequest body.
OptionaltimeoutOverride timeout in ms.
OptionalretryOverride retry config.
OptionalauthOverride auth.
OptionalproxyOverride proxy.
OptionalmaxMaximum request body size in bytes. 0 = no limit.
OptionalsignalAbortSignal.
OptionalcachePer-request cache config.
OptionalmaxResponse size limit in bytes.
OptionalthrowWhether to throw on HTTP 4xx/5xx.
OptionalfollowWhether to follow redirects.
OptionalmaxMax redirects.
OptionalhttpPreferred HTTP version.
OptionalonUpload progress callback.
OptionalonDownload progress callback.
OptionaltagsCache tags for invalidation.
OptionalparseResponse body parser. Defaults to JSON for application/json, text otherwise.
OptionalparseCalled when the default body parser silently falls back from JSON to raw text due to a parse error.
This makes implicit type-conversion failures visible without requiring a
custom parseResponse. Useful for monitoring and debugging content-type
mismatches in production.
The raw response body bytes.
The parse error that caused the fallback.
OptionalonCallback invoked on successful response.
Alternative to the promise return pattern. If both onSuccess and the
promise are used, the callback is invoked first, then the promise resolves.
OptionalonCallback invoked on request/response error.
Called for both network errors and HTTP error responses (4xx/5xx when
throwOnError is true). Use this for callback-style error handling
without try/catch.
OptionalmetaArbitrary metadata attached to the request.
Options passed to individual request methods — override instance defaults.