You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs.html
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1218,7 +1218,9 @@ <h1>fetch</h1>
1218
1218
<dd>A promise that is resolved when the resource is successfully fetched and rejected if there is any error.
1219
1219
When the request is successful, the promise resolves with the XHR object.
1220
1220
When the request fails, the promise rejects with an Error whose message is a description of the error.
1221
-
The error object also contains two properties: <code>xhr</code> which points to the XHR object, and <code>status</code> which returns the status code (e.g. 404).</dd>
1221
+
The error object also contains two properties: <code>xhr</code> which points to the XHR object, and
1222
+
<code>status</code> which returns the status code (e.g. 404). In case you need to abort the request,
1223
+
the xhr is returned in a field on the promise, so you can: <code>promise.xhr.abort()</code>.</dd>
0 commit comments