Skip to content

Commit

Permalink
Address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
yutakahirano committed Jan 25, 2016
1 parent 3bcfdd3 commit 8bf5455
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 33 deletions.
32 changes: 15 additions & 17 deletions Overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<p><a class="logo" href="https://whatwg.org/"><img alt="WHATWG" height="100" src="https://resources.whatwg.org/logo-fetch.svg" width="100"></a>
<h1 id="cors">Fetch</h1>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-21-january-2016">Living Standard — Last Updated 21 January 2016</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-25-january-2016">Living Standard — Last Updated 25 January 2016</h2>

<dl>
<dt>Participate:
Expand Down Expand Up @@ -251,7 +251,7 @@ <h2 id="infrastructure"><span class="secno">3 </span>Infrastructure</h2>
<hr>

<p>To <dfn id="wait-for-a-response">wait for a <var>response</var></dfn>, if <var>response</var>'s
<a href="#concept-response-body" title="concept-response-body">body</a> is not null, wait for <var>response</var>'s
<a href="#concept-response-body" title="concept-response-body">body</a> is non-null, wait for <var>response</var>'s
<a href="#concept-response-body" title="concept-response-body">body</a>'s <a href="#concept-body-stream" title="concept-body-stream">stream</a> to be
<a href="#concept-readablestream-closed" title="concept-ReadableStream-closed">closed</a> or
<a href="#concept-readablestream-errored" title="concept-ReadableStream-errored">errored</a>.
Expand Down Expand Up @@ -516,10 +516,10 @@ <h4 id="bodies"><span class="secno">3.1.4 </span>Bodies</h4>
members as the <a href="#concept-readablestream"><code title="concept-ReadableStream">ReadableStream</code></a> object has today.

<p>A <a href="#concept-body" title="concept-body">body</a> has an associated
<dfn id="concept-body-transmitted" title="concept-body-transmitted">transmitted</dfn> (an integer). Unless stated it is 0.
<dfn id="concept-body-transmitted" title="concept-body-transmitted">transmitted</dfn> (an integer). Unless stated otherwise it is 0.

<p>A <a href="#concept-body" title="concept-body">body</a> has an associated
<dfn id="concept-body-total-bytes" title="concept-body-total-bytes">total bytes</dfn> (an integer). Unless stated it is 0.
<dfn id="concept-body-total-bytes" title="concept-body-total-bytes">total bytes</dfn> (an integer). Unless stated otherwise it is 0.

<p>To <dfn id="concept-body-clone" title="concept-body-clone">clone</dfn> a <a href="#concept-body" title="concept-body">body</a>
<var>body</var>, run these steps:
Expand Down Expand Up @@ -949,7 +949,7 @@ <h4 id="requests"><span class="secno">3.1.5 </span>Requests</h4>
<li><p>Let <var>newRequest</var> be a copy of <var>request</var>, except for its
<a href="#concept-request-body" title="concept-request-body">body</a>.

<li><p>If <var>request</var>'s <a href="#concept-request-body" title="concept-request-body">body</a> is not null, set
<li><p>If <var>request</var>'s <a href="#concept-request-body" title="concept-request-body">body</a> is non-null, set
<var>newRequest</var>'s <a href="#concept-request-body" title="concept-request-body">body</a> to the result of
<a href="#concept-body-clone" title="concept-body-clone">cloning</a> <var>request</var>'s
<a href="#concept-request-body" title="concept-request-body">body</a>. Rethrow any exceptions.
Expand Down Expand Up @@ -1139,7 +1139,7 @@ <h4 id="responses"><span class="secno">3.1.6 </span>Responses</h4>
<li><p>Let <var>newResponse</var> be a copy of <var>response</var>, except for its
<a href="#concept-response-body" title="concept-response-body">body</a>.

<li><p>If <var>response</var>'s <a href="#concept-response-body" title="concept-response-body">body</a> is not null, set
<li><p>If <var>response</var>'s <a href="#concept-response-body" title="concept-response-body">body</a> is non-null, set
<var>newResponse</var>'s <a href="#concept-response-body" title="concept-response-body">body</a> to the result of
<a href="#concept-body-clone" title="concept-body-clone">cloning</a> <var>response</var>'s
<a href="#concept-response-body" title="concept-response-body">body</a>. Rethrow any exceptions.
Expand Down Expand Up @@ -1989,13 +1989,9 @@ <h3 id="main-fetch"><span class="secno">5.1 </span>Main fetch</h3>
<li><p><a href="#queue-a-fetch-task">Queue a fetch task</a> on <var>request</var> to
<a href="#process-response">process response</a> for <var>response</var>.

<li>
<p>Run these substeps <a class="external" data-anolis-spec="html" href="https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel">in parallel</a>:
<ol>
<li><p><a href="#wait-for-a-response" title="wait for a response">Wait for</a> <var>internalResponse</var>.
<li><p><a href="#wait-for-a-response" title="wait for a response">Wait for</a> <var>internalResponse</var>.

<li><p><a href="#queue-a-fetch-done-task">Queue a fetch-done task</a> using <var>request</var> and <var>response</var>.
</ol>
<li><p><a href="#queue-a-fetch-done-task">Queue a fetch-done task</a> using <var>request</var> and <var>response</var>.
</ol>


Expand Down Expand Up @@ -2751,6 +2747,7 @@ <h3 id="http-network-fetch"><span class="secno">5.5 </span>HTTP-network fetch</h

<li>
<p>Let <var>strategy</var> be an object. The user agent may choose any object.

<p class="note no-backref"><var>strategy</var> is used to control the queuing strategy of
<var>stream</var> constructed below.

Expand Down Expand Up @@ -2872,6 +2869,7 @@ <h3 id="http-network-fetch"><span class="secno">5.5 </span>HTTP-network fetch</h
<li>
<p><a href="#concept-enqueue-readablestream" title="concept-enqueue-ReadableStream">Enqueue</a> a <code>Uint8Array</code>
object wrapping an <code>ArrayBuffer</code> containing <var>bytes</var> to <var>stream</var>.

<p class="note no-backref">This operation will not throw an exception.

<li><p>If <var>stream</var> doesn't <a href="#concept-readablestream-need-more-data" title="concept-ReadableStream-need-more-data">need more
Expand Down Expand Up @@ -3602,12 +3600,12 @@ <h3 id="body-mixin"><span class="secno">6.2 </span>Body mixin</h3>

<p>An object implementing the <a href="#body"><code>Body</code></a> mixin is said to be
<dfn id="concept-body-disturbed" title="concept-Body-disturbed">disturbed</dfn> if <a href="#concept-body-body" title="concept-Body-body">body</a> is
not null and its <a href="#concept-body-stream" title="concept-body-stream">stream</a> is
non-null and its <a href="#concept-body-stream" title="concept-body-stream">stream</a> is
<a href="#concept-readablestream-disturbed" title="concept-ReadableStream-disturbed">disturbed</a>.

<p>An object implementing the <a href="#body"><code>Body</code></a> mixin is said to be
<dfn id="concept-body-locked" title="concept-Body-locked">locked</dfn> if <a href="#concept-body-body" title="concept-Body-body">body</a> is not
null and its <a href="#concept-body-stream" title="concept-body-stream">stream</a> is
<dfn id="concept-body-locked" title="concept-Body-locked">locked</dfn> if <a href="#concept-body-body" title="concept-Body-body">body</a> is
non-null and its <a href="#concept-body-stream" title="concept-body-stream">stream</a> is
<a href="#concept-readablestream-locked" title="concept-ReadableStream-locked">locked</a>.

<p>The <dfn id="dom-body-bodyused" title="dom-Body-bodyUsed"><code>bodyUsed</code></dfn> attribute's getter must
Expand Down Expand Up @@ -3690,8 +3688,8 @@ <h3 id="body-mixin"><span class="secno">6.2 </span>Body mixin</h3>
<code>TypeError</code>.

<li><p>Let <var>stream</var> be <a href="#concept-body-body" title="concept-Body-body">body</a>'s
<a href="#concept-body-stream" title="concept-body-stream">stream</a> if <a href="#concept-body-body" title="concept-Body-body">body</a> is not
null, or an <a href="#concept-empty-readablestream" title="concept-empty-ReadableStream">empty</a>
<a href="#concept-body-stream" title="concept-body-stream">stream</a> if <a href="#concept-body-body" title="concept-Body-body">body</a> is
non-null, or an <a href="#concept-empty-readablestream" title="concept-empty-ReadableStream">empty</a>
<a href="#concept-readablestream"><code title="concept-ReadableStream">ReadableStream</code></a> object otherwise.

<li><p>Let <var>reader</var> be the result of <a href="#concept-get-reader" title="concept-get-reader">getting</a>
Expand Down
30 changes: 14 additions & 16 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ <h2>Infrastructure</h2>
<hr>

<p>To <dfn>wait for a <var>response</var></dfn>, if <var>response</var>'s
<span title=concept-response-body>body</span> is not null, wait for <var>response</var>'s
<span title=concept-response-body>body</span> is non-null, wait for <var>response</var>'s
<span title=concept-response-body>body</span>'s <span title=concept-body-stream>stream</span> to be
<span title=concept-ReadableStream-closed>closed</span> or
<span title=concept-ReadableStream-errored>errored</span>.
Expand Down Expand Up @@ -455,10 +455,10 @@ <h4>Bodies</h4>
members as the <code title=concept-ReadableStream>ReadableStream</code> object has today.

<p>A <span title=concept-body>body</span> has an associated
<dfn title=concept-body-transmitted>transmitted</dfn> (an integer). Unless stated it is 0.
<dfn title=concept-body-transmitted>transmitted</dfn> (an integer). Unless stated otherwise it is 0.

<p>A <span title=concept-body>body</span> has an associated
<dfn title=concept-body-total-bytes>total bytes</dfn> (an integer). Unless stated it is 0.
<dfn title=concept-body-total-bytes>total bytes</dfn> (an integer). Unless stated otherwise it is 0.

<p>To <dfn title=concept-body-clone>clone</dfn> a <span title=concept-body>body</span>
<var>body</var>, run these steps:
Expand Down Expand Up @@ -888,7 +888,7 @@ <h4>Requests</h4>
<li><p>Let <var>newRequest</var> be a copy of <var>request</var>, except for its
<span title=concept-request-body>body</span>.

<li><p>If <var>request</var>'s <span title=concept-request-body>body</span> is not null, set
<li><p>If <var>request</var>'s <span title=concept-request-body>body</span> is non-null, set
<var>newRequest</var>'s <span title=concept-request-body>body</span> to the result of
<span title=concept-body-clone>cloning</span> <var>request</var>'s
<span title=concept-request-body>body</span>. Rethrow any exceptions.
Expand Down Expand Up @@ -1078,7 +1078,7 @@ <h4>Responses</h4>
<li><p>Let <var>newResponse</var> be a copy of <var>response</var>, except for its
<span title=concept-response-body>body</span>.

<li><p>If <var>response</var>'s <span title=concept-response-body>body</span> is not null, set
<li><p>If <var>response</var>'s <span title=concept-response-body>body</span> is non-null, set
<var>newResponse</var>'s <span title=concept-response-body>body</span> to the result of
<span title=concept-body-clone>cloning</span> <var>response</var>'s
<span title=concept-response-body>body</span>. Rethrow any exceptions.
Expand Down Expand Up @@ -1928,13 +1928,9 @@ <h3>Main fetch</h3>
<li><p><span>Queue a fetch task</span> on <var>request</var> to
<span>process response</span> for <var>response</var>.

<li>
<p>Run these substeps <span data-anolis-spec=html>in parallel</span>:
<ol>
<li><p><span title="wait for a response">Wait for</span> <var>internalResponse</var>.
<li><p><span title="wait for a response">Wait for</span> <var>internalResponse</var>.

<li><p><span>Queue a fetch-done task</span> using <var>request</var> and <var>response</var>.
</ol>
<li><p><span>Queue a fetch-done task</span> using <var>request</var> and <var>response</var>.
</ol>


Expand Down Expand Up @@ -2690,6 +2686,7 @@ <h3>HTTP-network fetch</h3>

<li>
<p>Let <var>strategy</var> be an object. The user agent may choose any object.

<p class="note no-backref"><var>strategy</var> is used to control the queuing strategy of
<var>stream</var> constructed below.

Expand Down Expand Up @@ -2811,6 +2808,7 @@ <h3>HTTP-network fetch</h3>
<li>
<p><span title=concept-enqueue-ReadableStream>Enqueue</span> a <code>Uint8Array</code>
object wrapping an <code>ArrayBuffer</code> containing <var>bytes</var> to <var>stream</var>.

<p class="note no-backref">This operation will not throw an exception.

<li><p>If <var>stream</var> doesn't <span title=concept-ReadableStream-need-more-data>need more
Expand Down Expand Up @@ -3541,12 +3539,12 @@ <h3>Body mixin</h3>

<p>An object implementing the <code>Body</code> mixin is said to be
<dfn title=concept-Body-disturbed>disturbed</dfn> if <span title=concept-Body-body>body</span> is
not null and its <span title=concept-body-stream>stream</span> is
non-null and its <span title=concept-body-stream>stream</span> is
<span title=concept-ReadableStream-disturbed>disturbed</span>.

<p>An object implementing the <code>Body</code> mixin is said to be
<dfn title=concept-Body-locked>locked</dfn> if <span title=concept-Body-body>body</span> is not
null and its <span title=concept-body-stream>stream</span> is
<dfn title=concept-Body-locked>locked</dfn> if <span title=concept-Body-body>body</span> is
non-null and its <span title=concept-body-stream>stream</span> is
<span title=concept-ReadableStream-locked>locked</span>.

<p>The <dfn title=dom-Body-bodyUsed><code>bodyUsed</code></dfn> attribute's getter must
Expand Down Expand Up @@ -3629,8 +3627,8 @@ <h3>Body mixin</h3>
<code>TypeError</code>.

<li><p>Let <var>stream</var> be <span title=concept-Body-body>body</span>'s
<span title=concept-body-stream>stream</span> if <span title=concept-Body-body>body</span> is not
null, or an <span title=concept-empty-ReadableStream>empty</span>
<span title=concept-body-stream>stream</span> if <span title=concept-Body-body>body</span> is
non-null, or an <span title=concept-empty-ReadableStream>empty</span>
<code title=concept-ReadableStream>ReadableStream</code> object otherwise.

<li><p>Let <var>reader</var> be the result of <span title=concept-get-reader>getting</span>
Expand Down

0 comments on commit 8bf5455

Please sign in to comment.