- From: Jake Archibald <notifications@github.com>
- Date: Thu, 10 Aug 2017 11:53:35 +0000 (UTC)
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 10 August 2017 11:53:58 UTC
jakearchibald commented on this pull request. > @@ -5401,6 +5535,30 @@ method, must run these steps: <li><p>Return <var>p</var>. </ol> +<p>To <dfn>abort fetch</dfn> with a <var>promise</var>, <var>request</var>, and +<var>responseObject</var>, run these steps: + +<ol> + <li><p>Let <var>error</var> be an "<code><a exception>AbortError</a></code>" {{DOMException}}. + + <li><p>Reject <var>promise</var> with <var>error</var>. + + <li><p>If <var>request</var>'s <a for=request>body</a> is not null and is + <a for=ReadableStream>readable</a>, then <a for=ReadableStream>cancel</a> <var>request</var>'s + <a for=request>body</a> with <var>error</var>. + + <li><p>If <var>responseObject</var> is null, then return. It is if it's called as part of `fetch()` step 4.1. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/523#discussion_r132432833
Received on Thursday, 10 August 2017 11:53:58 UTC