Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call finalize and report timing automatically on end-of-body #1413

Merged
merged 31 commits into from
Jun 17, 2022
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Align server-timing with conclude
  • Loading branch information
noamr committed Jun 8, 2022
commit ee02a161752499a325d9a23653e209ebdbcd5b9c
10 changes: 5 additions & 5 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4319,6 +4319,9 @@ steps:
<li><p>Set <var>fetchParams</var>'s <a for="fetch params">controller</a>'s
<a for="fetch controller">state</a> to "<code>transmitting</code>".

<li><p>Let <var>timingInfo</var> be <var>fetchParams</var>'s
<a for="fetch params">timing info</a>.

<li>
<p>Set <var>fetchParams</var>'s <a for="fetch params">controller</a>'s
<a for="fetch controller">conclude steps</a> to the following steps given a string
Expand All @@ -4339,9 +4342,6 @@ steps:
<li><p>If <var>fetchParams</var>'s <a for="fetch params">request</a>'s <a for=request>URL</a>'s
<a for=url>scheme</a> is not an <a>HTTP(S) scheme</a>, then return.

<li><p>Let <var>timingInfo</var> be <var>fetchParams</var>'s
<a for="fetch params">timing info</a>.

<li><p>Let <var>cacheState</var> be <var>response</var>'s <a for=response>cache state</a>.

<li><p>Let <var>bodyInfo</var> be <var>response</var>'s <a for=response>body info</a>.
Expand All @@ -4367,8 +4367,8 @@ steps:

<li>
<p>Otherwise, if <var>fetchParams</var>'s <a for="fetch params">request</a>'s
<a for=request>client</a> is a <a>secure context</a>, set <var>response</var>'s
<a for=response>timing info</a>'s <a for="fetch timing info">server-timing headers</a> to the
<a for=request>client</a> is a <a>secure context</a>, set <var>timingInfo</var>'s
<a for="fetch timing info">server-timing headers</a> to the
result of <a for="header list">getting, decoding, and splitting</a> `<code>Server-Timing</code>`
from <var>response</var>'s <a for=response>header list</a>.

Expand Down