Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Feb 11, 2021
1 parent 438d70e commit ae4b46d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ lt="authentication entry">authentication entries</a> (for HTTP authentication).

<hr>

<p>A <dfn>fetch params</dfn> is a <a for=/>struct</a> used in <a for=/>fetching</a>. It has the
following <a for=struct>items</a>:
<p>A <dfn>fetch params</dfn> is a <a for=/>struct</a> used as a bookkeeping detail by the
<a for=/>fetch</a> algorithm. It has the following <a for=struct>items</a>:

<dl>
<dt><dfn for="fetch params">request</dfn>
Expand Down Expand Up @@ -1732,11 +1732,12 @@ is to return the result of <a>serializing a request origin</a> with <var>request

<p class=note>This step blocks until <var>bs</var> is fully transmitted.

<li><p>Let <var>algorithm</var> be this step: perform the <a>transmit-request-body loop</a>
given <var>fetchParams</var>, <var>body</var>, and <var>reader</var>.
<li><p>Let <var>continueAlgorithm</var> be this step: perform the
<a>transmit-request-body loop</a> given <var>fetchParams</var>, <var>body</var>, and
<var>reader</var>.

<li><p>If the ongoing fetch is not <a for=fetch>terminated</a>, then
<a>queue a fetch task</a> given <var>algorithm</var>, <var>fetchParams</var>'s
<a>queue a fetch task</a> given <var>continueAlgorithm</var>, <var>fetchParams</var>'s
<a for="fetch params">global</a>, and <var>fetchParams</var>'s
<a for="fetch params">algorithm queue</a>.
</ol>
Expand Down Expand Up @@ -3257,7 +3258,9 @@ an optional algorithm <dfn export for=fetch id=process-response><var>processResp
optional algorithm
<dfn export for=fetch id=process-response-end-of-body oldids=process-response-end-of-file><var>processResponseEndOfBody</var></dfn>,
and an optional boolean <dfn export for=fetch><var>useParallelQueue</var></dfn> (default false), run
the steps below.
the steps below. If given, <var>processRequestBody</var> and <var>processRequestEndOfBody</var> must
be an algorithm accepting a <a for=/>request</a>; <var>processResponse</var> and
<var>processResponseEndOfBody</var> must be an algorithm accepting a <a for=/>response</a>.

<p>An ongoing <a for=/>fetch</a> can be
<dfn export for=fetch id=concept-fetch-terminate>terminated</dfn> with flag <var>aborted</var>,
Expand Down

0 comments on commit ae4b46d

Please sign in to comment.