Skip to content

Commit

Permalink
Update definitions for body info
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed Jan 3, 2023
1 parent 0c68411 commit 6ed6bff
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2398,7 +2398,8 @@ this is also tracked internally using the request's <a for=request>timing allow
<p>A <dfn export id=concept-network-error>network error</dfn> is a <a for=/>response</a> whose
<a for=response>type</a> is "<code>error</code>", <a for=response>status</a> is 0,
<a for=response>status message</a> is the empty byte sequence,
<a for=response>header list</a> is « », and <a for=response>body</a> is null.
<a for=response>header list</a> is « », <a for=response>body</a> is null, and
<a for=response>body info</a> is a new <a for=/>response body info</a>,.

<p>An <dfn export id=concept-aborted-network-error>aborted network error</dfn> is a
<a>network error</a> whose <a for=response>aborted flag</a> is set.
Expand Down Expand Up @@ -2469,17 +2470,18 @@ of defining the concrete types of <a for=/>filtered responses</a>.)
<a for=response>URL list</a> is « »,
<a for=response>status</a> is 0,
<a for=response>status message</a> is the empty byte sequence,
<a for=response>header list</a> is « », and
<a for=response>body</a> is null.
<a for=response>header list</a> is « », <a for=response>body</a> is null, and
<a for=response>body info</a> is a new <a for=/>response body info</a>.

<p>An
<dfn export id=concept-filtered-response-opaque-redirect>opaque-redirect filtered response</dfn>
is a <a>filtered response</a> whose
<a for=response>type</a> is "<code>opaqueredirect</code>",
<a for=response>status</a> is 0,
<a for=response>status message</a> is the empty byte sequence,
<a for=response>header list</a> is « », and
<a for=response>body</a> is null.
<a for=response>header list</a> is « »,
<a for=response>body</a> is null, and
<a for=response>body info</a> is a new <a for=/>response body info</a>.

<div class=note>
<p>Exposing the <a for=response>URL list</a> for
Expand Down Expand Up @@ -4682,9 +4684,6 @@ steps:

<p class=note>This covers the case of <var>response</var> being a <a>network error</a>.

<li><p>If <var>response</var>is an <a>opaque filtered response</a> or a <a>network error</a>,
then set <var>bodyInfo</var> to a new <a for=/>response body info</a>.

<li><p>Let <var>responseStatus</var> be 0 if <var>fetchParams</var>'s
<a for="fetch params">request</a>'s <a for=request>mode</a> is "<code>navigate</code>" and
<var>response</var>'s <a for=response>has-cross-origin-redirects</a> is true; otherwise
Expand Down

0 comments on commit 6ed6bff

Please sign in to comment.