Skip to content

Commit

Permalink
Add content-type to response body info
Browse files Browse the repository at this point in the history
  • Loading branch information
abinpaul1 committed Nov 14, 2022
1 parent 154061f commit 948dc1b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ following <a for=struct>items</a>: [[RESOURCE-TIMING]] [[NAVIGATION-TIMING]]
<dt><dfn export for="response body info" id="fetch-timing-info-decoded-body-size">decoded
size</dfn> (default 0)
<dd>A number.
<dt><dfn export for="response body info" id="response-body-info-content-type">content
type</dfn> (default null)
<dd>Null or a <a for=/>MIME type</a>.
</dl>

<p>To
Expand Down Expand Up @@ -4518,6 +4521,13 @@ steps:
<var>response</var>'s <a for=response>has-cross-origin-redirects</a> is true; otherwise
<var>response</var>'s <a for=response>status</a>.

<li><p>If <var>fetchParams</var>'s <a for="fetch params">request</a>'s
<a for=request>mode</a> is not "<code>navigate</code>" or <var>response</var>'s
<a for=response>has-cross-origin-redirects</a> is false, then set
<var>bodyInfo</var>'s <a for="response body info">content type</a> to the result of
<a for="header list">extracting a MIME type</a> from <var>response</var>'s
<a for=response>header list</a>.

<li><p>If <var>fetchParams</var>'s <a for="fetch params">request</a>'s
<a for=request>initiator type</a> is not null, then
<a for=/>mark resource timing</a> given <var>timingInfo</var>, <var>request</var>'s
Expand Down

0 comments on commit 948dc1b

Please sign in to comment.