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

Add server-timing to timing info struct #1406

Merged
merged 5 commits into from
Apr 21, 2022
Merged
Changes from all commits
Commits
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
14 changes: 13 additions & 1 deletion fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ following <a for=struct>items</a>: [[RESOURCE-TIMING]] [[NAVIGATION-TIMING]]

<dt><dfn export for="fetch timing info">final connection timing info</dfn> (default null)
<dd>Null or a <a for=/>connection timing info</a>.

<dt><dfn export for="fetch timing info">server-timing headers</dfn> (default « »)
<dd>A <a for=/>list</a> of strings.
</dl>

<p>To
Expand Down Expand Up @@ -4310,7 +4313,16 @@ steps:
<a>creating an opaque timing info</a> for <var>fetchParams</var>'s
<a for="fetch params">timing info</a>.</p></li>
</ol>
</li>

<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
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>.

<p>The user agent may decide to expose `<code>Server-Timing</code>` headers to non-secure contexts
requests as well.

<li>
<p>Let <var>processResponseEndOfBody</var> be the following steps:
Expand Down