- From: Jake Archibald <notifications@github.com>
- Date: Thu, 28 Oct 2021 04:30:06 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/1329/review/791736490@github.com>
@jakearchibald commented on this pull request. > @@ -255,6 +258,29 @@ given a <a for=/>fetch timing info</a> <var>timingInfo</var>, return a new <var>storedTimingInfo</var>'s <a for="fetch timing info">decoded body size</a>. </ol> +<p>To <dfn for="fetch params">abort</dfn> a <a for=/>fetch params</a> <var>fetchParams</var>, +set <var>fetchParams</var>'s <a for="fetch params">fetch state</a> to "<code>aborted</code>". + +<p>To <dfn for="fetch params">terminate</dfn> a <a for=/>fetch params</a> <var>fetchParams</var>, +set <var>fetchParams</var>'s <a for="fetch params">fetch state</a> to "<code>terminated</code>". + +<p>A <a for=/>fetch params</a> <var>fetchParams</var> is <dfn for="fetch params">canceled</dfn> if +its <a for="fetch params">fetch state</a> is "<code>aborted</code>" or "<code>terminated</code>". + +<p>A <dfn export>fetch controller</dfn> is an object used to enable clients of an ongoing fetch +to perform certain actions in the context of that fetch instance. It seems a bit weird to me, since it doesn't make the `fetch params` private. @annevk is there a spec way to do that? Eg "the fetch controller has a fetch state. A fetch controller's fetch state must not be accessed by other specifications." -- 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/1329#discussion_r738296381
Received on Thursday, 28 October 2021 11:30:18 UTC