Headers type
Params type
State type
OptionalattemptCurrent attempt number (1-based)
OptionalattemptPer-attempt timeout (ms)
OptionalbodySerialized request body
OptionalcacheA string indicating how the request will interact with the browser's cache to set request's cache.
AbortController (for child signals in retry)
OptionalcredentialsA string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials.
OptionaldetermineResponse type determination function
OptionalgetReturns the active response directive from FetchPromise
OptionalgetFunction to check if total timeout has fired
Merged headers (instance + method + request)
OptionalintegrityA cryptographic hash of the resource to be fetched by request. Sets request's integrity.
OptionalkeepaliveA boolean to set request's keepalive.
HTTP method (uppercase)
OptionalmodeA string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.
OptionalonCalled after request (before parse)
OptionalonCalled before request
OptionalonCalled on error
URL parameters as flat object (from url.searchParams)
Original request path
OptionalpayloadRequest payload/body
OptionalpriorityOptionalredirectA string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect.
OptionalreferrerA string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer.
OptionalreferrerA referrer policy to set request's referrerPolicy.
OptionalrequestUnique ID for this request, flows through all events
OptionalrequestTimestamp (ms) when the request entered the execution pipeline
OptionalretryRetry configuration (true normalized to {})
AbortSignal for cancellation
Instance state
OptionaltimeoutRequest timeout (ms) - deprecated, use totalTimeout
Fully constructed URL
OptionalwindowCan only be null. Used to disassociate request from any Window.
Internal normalized request options - flat structure used throughout FetchEngine.
This is the single source of truth for all request data, flowing to:
Extends native RequestInit (minus headers/signal/body/method which we handle) to support instance-level defaults for credentials, mode, cache, etc.