Skip to content

Commit 14898c0

Browse files
authored
Add Server-Timing header infrastructure
For w3c/server-timing#87. (This does not deal with support in trailer fields, that's tracked by w3c/server-timing#68.)
1 parent 321c452 commit 14898c0

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

fetch.bs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ following <a for=struct>items</a>: [[RESOURCE-TIMING]] [[NAVIGATION-TIMING]]
273273

274274
<dt><dfn export for="fetch timing info">final connection timing info</dfn> (default null)
275275
<dd>Null or a <a for=/>connection timing info</a>.
276+
277+
<dt><dfn export for="fetch timing info">server-timing headers</dfn> (default « »)
278+
<dd>A <a for=/>list</a> of strings.
276279
</dl>
277280

278281
<p>To
@@ -4341,7 +4344,16 @@ steps:
43414344
<a>creating an opaque timing info</a> for <var>fetchParams</var>'s
43424345
<a for="fetch params">timing info</a>.</p></li>
43434346
</ol>
4344-
</li>
4347+
4348+
<li>
4349+
<p>Otherwise, if <var>fetchParams</var>'s <a for="fetch params">request</a>'s
4350+
<a for=request>client</a> is a <a>secure context</a>, set <var>response</var>'s
4351+
<a for=response>timing info</a>'s <a for="fetch timing info">server-timing headers</a> to the
4352+
result of <a for="header list">getting, decoding, and splitting</a> `<code>Server-Timing</code>`
4353+
from <var>response</var>'s <a for=response>header list</a>.
4354+
4355+
<p>The user agent may decide to expose `<code>Server-Timing</code>` headers to non-secure contexts
4356+
requests as well.
43454357

43464358
<li>
43474359
<p>Let <var>processResponseEndOfBody</var> be the following steps:

0 commit comments

Comments
 (0)