Skip to content

Commit

Permalink
Switch order around
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed Nov 29, 2021
1 parent 234215f commit 9bfc824
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4222,6 +4222,20 @@ steps:
<li><p>Let <var>hasReadableStream</var> be true if <var>response</var>'s <a for=response>body</a>
is not null and is <a for=ReadableStream>readable</a>; otherwise false.

<li>
<p>Let <var>processResponseDone</var> be the following steps:

<ol>
<li><p>Set <var>fetchParams</var>'s <a for="fetch params">request</a>'s
<a for=request>done flag</a>.

<li><p>If <var>fetchParams</var>'s <a for="fetch params">process response done</a> is not null,
then <a>queue a fetch task</a> to run <var>fetchParams</var>'s
<a for="fetch params">process response done</a> given <var>response</var> with
<var>fetchParams</var>'s <a for="fetch params">task destination</a>.
</ol>
</li>

<li>
<p>If <var>hasReadableStream</var> is true, then:

Expand All @@ -4245,20 +4259,6 @@ steps:
<a for="fetch params">process response</a> given <var>response</var>, with <var>fetchParams</var>'s
<a for="fetch params">task destination</a>.

<li>
<p>Let <var>processResponseDone</var> be the following steps:

<ol>
<li><p>Set <var>fetchParams</var>'s <a for="fetch params">request</a>'s
<a for=request>done flag</a>.

<li><p>If <var>fetchParams</var>'s <a for="fetch params">process response done</a> is not null,
then <a>queue a fetch task</a> to run <var>fetchParams</var>'s
<a for="fetch params">process response done</a> given <var>response</var> with
<var>fetchParams</var>'s <a for="fetch params">task destination</a>.
</ol>
</li>

<li>
<p>If <var>fetchParams</var>'s <a for="fetch params">process response end-of-body</a> is non-null,
then:
Expand Down

0 comments on commit 9bfc824

Please sign in to comment.