The type of the data expected in the response.
ReadonlyabortedIndicates whether the fetch task has been aborted.
Returns true if abort() was called or if the request timed out.
ReadonlyresultThe result promise of the fetch task.
Resolves to Ok<T> on success, or Err<Error> on failure (including abort).
Aborts the fetch task, optionally with a reason.
Once aborted, the result promise will resolve to an Err containing
an AbortError. The abort reason can be any value and will be passed
to the underlying AbortController.abort().
Optionalreason: anyAn optional value indicating why the task was aborted. This can be an Error, string, or any other value.
Represents an abortable fetch operation with control methods.
Returned when
abortable: trueis set in the fetch options. Provides the ability to cancel the request and check its abort status.Example