Skip to content

Commit

Permalink
Add timing information about interim responses
Browse files Browse the repository at this point in the history
See w3c/resource-timing#345 for context.
  • Loading branch information
noamr committed May 8, 2023
1 parent 13cb7c9 commit 76ee5f5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ following <a for=struct>items</a>: [[RESOURCE-TIMING]] [[NAVIGATION-TIMING]]
<dt><dfn export for="fetch timing info">post-redirect start time</dfn> (default 0)
<dt><dfn export for="fetch timing info">final service worker start time</dfn> (default 0)
<dt><dfn export for="fetch timing info">final network-request start time</dfn> (default 0)
<dt><dfn export for="fetch timing info">first interim network-response start time</dfn> (default 0)
<dt><dfn export for="fetch timing info">final network-response start time</dfn> (default 0)
<dt><dfn export for="fetch timing info">end time</dfn> (default 0)
<dd>A {{DOMHighResTimeStamp}}.
Expand Down Expand Up @@ -5995,9 +5996,8 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
<p>While true:

<ol>
<li><p>If <var>timingInfo</var>'s
<a for="fetch timing info">final network-response start time</a> is 0, then set
<var>timingInfo</var>'s <a for="fetch timing info">final network-response start time</a> to
<li><p>Set <var>timingInfo</var>'s
<a for="fetch timing info">final network-response start time</a> to the
<a for=/>coarsened shared current time</a> given <var>fetchParams</var>'s
<a for="fetch params">cross-origin isolated capability</a>, immediately after the user
agent's HTTP parser receives the first byte of the response (e.g., frame header bytes for
Expand All @@ -6015,6 +6015,12 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
processing we now perform here inline. -->

<ol>
<li><p>If <var>timingInfo</var>'s
<a for="fetch timing info">first interim network-response start time</a> is 0, then set
<var>timingInfo</var>'s
<a for="fetch timing info">first interim network-response start time</a> to
<var>timingInfo</var>'s <a for="fetch timing info">final network-response start time</a>.

<li><p>If <var>request</var>'s <a for=request>mode</a> is "<code>websocket</code>" and
<var>status</var> is 101, then <a for=iteration>break</a>.

Expand Down

0 comments on commit 76ee5f5

Please sign in to comment.