The active response directive, if any.
Whether the request was aborted, either via abort() or
an external signal on the controller.
Whether the executor has resolved or rejected (without abort).
Whether stream mode is active.
Async iterator that yields response body chunks as Uint8Array.
Only available after calling .stream(). Reads from the underlying
ReadableStream and releases the reader lock when iteration ends.
Abort the in-flight request.
Sets isAborted and delegates to the stored AbortController.
Safe to call even when no controller is present (plain constructor).
Optionalreason: stringParse the response body as an ArrayBuffer.
Parse the response body as a Blob.
Attaches a callback for only the rejection of the Promise.
Optionalonrejected: ((reason: any) => TResult | PromiseLike<TResult>) | nullThe callback to execute when the Promise is rejected.
A Promise for the completion of the callback.
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
Optionalonfinally: (() => void) | nullThe callback to execute when the Promise is settled (fulfilled or rejected).
A Promise for the completion of the callback.
Parse the response body as FormData.
Parse the response body as JSON.
Return the raw Response object without parsing.
Enable streaming mode for the response.
Returns the raw Response and marks the promise for async iteration over response body chunks.
Parse the response body as plain text.
Attaches callbacks for the resolution and/or rejection of the Promise.
Optionalonfulfilled: ((value: FetchResponse) => TResult1 | PromiseLike<TResult1>) | nullThe callback to execute when the Promise is resolved.
Optionalonrejected: ((reason: any) => TResult2 | PromiseLike<TResult2>) | nullThe callback to execute when the Promise is rejected.
A Promise for the completion of which ever callback is executed.
A stream-mode FetchPromise that also supports async iteration over chunks.
Returned by
.stream()to signal that the caller wants raw streaming access to the response body asUint8Arraychunks.