Skip to content

Commit

Permalink
Address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
yutakahirano committed Feb 5, 2016
1 parent 7653db2 commit efd4b6b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
19 changes: 8 additions & 11 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-2-february-2016">Living Standard — Last Updated 2 February 2016</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-5-february-2016">Living Standard — Last Updated 5 February 2016</h2>

<dl>
<dt>Participate:
Expand Down Expand Up @@ -2861,26 +2861,23 @@ <h3 id="http-network-fetch"><span class="secno">5.5 </span>HTTP-network fetch</h
in <var>response</var>'s
<a href="#concept-response-header-list" title="concept-response-header-list">header list</a>.

<li><p>Set <var>bytes</var> to the result of
<a href="#handle-content-codings" title="handle content codings">handling content codings</a> given
<var>codings</var> and <var>bytes</var>.
<li>
<p>Set <var>bytes</var> to the result of <a href="#handle-content-codings" title="handle content codings">handling
content codings</a> given <var>codings</var> and <var>bytes</var>.

<p class="note no-backref">This makes the `<code title="">Content-Length</code>`
<a href="#concept-header" title="concept-header">header</a> unreliable to the extent that it was reliable
to begin with.

<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
data</a> and <var>request</var>'s <a href="#synchronous-flag">synchronous flag</a> is unset, ask the user agent
to <a href="#concept-fetch-suspend" title="concept-fetch-suspend">suspend</a> the ongoing fetch.
</ol>

<p class="note no-backref">This means that the `<code title="">Content-Length</code>`
<a href="#concept-header" title="concept-header">header</a> is no longer reliable. A
<a href="#concept-response" title="concept-response">response</a> will still include it, but it cannot be
used, except for debugging and logging purposes.

<li><p>If at any point the bytes transmission is done normally and <var>stream</var> is
<a href="#concept-readablestream-readable" title="concept-ReadableStream-readable">readable</a>,
<a href="#concept-close-readablestream" title="concept-close-ReadableStream">close</a> <var>stream</var>.
Expand Down
17 changes: 7 additions & 10 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -2800,26 +2800,23 @@ <h3>HTTP-network fetch</h3>
in <var>response</var>'s
<span title=concept-response-header-list>header list</span>.

<li><p>Set <var>bytes</var> to the result of
<span title="handle content codings">handling content codings</span> given
<var>codings</var> and <var>bytes</var>.
<li>
<p>Set <var>bytes</var> to the result of <span title="handle content codings">handling
content codings</span> given <var>codings</var> and <var>bytes</var>.

<p class="note no-backref">This makes the `<code title>Content-Length</code>`
<span title=concept-header>header</span> unreliable to the extent that it was reliable
to begin with.

<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
data</span> and <var>request</var>'s <span>synchronous flag</span> is unset, ask the user agent
to <span title=concept-fetch-suspend>suspend</span> the ongoing fetch.
</ol>

<p class="note no-backref">This means that the `<code title>Content-Length</code>`
<span title=concept-header>header</span> is no longer reliable. A
<span title=concept-response>response</span> will still include it, but it cannot be
used, except for debugging and logging purposes.

<li><p>If at any point the bytes transmission is done normally and <var>stream</var> is
<span title=concept-ReadableStream-readable>readable</span>,
<span title=concept-close-ReadableStream>close</span> <var>stream</var>.
Expand Down

0 comments on commit efd4b6b

Please sign in to comment.