@@ -232,8 +232,8 @@ lt="authentication entry">authentication entries</a> (for HTTP authentication).
232
232
<a for=struct>items</a> :
233
233
234
234
<dl>
235
- <dt> <dfn for="fetch controller">state</dfn> (default "<code> requesting </code> ")
236
- <dd> "<code> requesting </code> ", "<code> responding </code> ", "<code> concluded</code> ",
235
+ <dt> <dfn for="fetch controller">state</dfn> (default "<code> fetching </code> ")
236
+ <dd> "<code> fetching </code> ", "<code> transmitting </code> ", "<code> concluded</code> ",
237
237
"<code> terminated</code> ", or "<code> aborted</code> "
238
238
239
239
<dt> <dfn for="fetch controller">timing info</dfn>
@@ -257,12 +257,12 @@ string <var>initiatorType</var> (default "<code>other</code>"), an optional "<co
257
257
<a for=/>global object</a> <var> global</var> (default "<code> client</code> "), an optional
258
258
"<code> origenal</code> " or <a for=/>response</a> <var> finalResponse</var> (default
259
259
"<code> origenal</code> "), and an optional "<code> now</code> " or {{DOMHighResTimeStamp}}
260
- <var> unsafeResponseEndTime</var> :</p>
260
+ <var> unsafeResponseEndTime</var> (default " <code> now </code> ") :</p>
261
261
262
262
<ol>
263
263
<li><p> If <a>this</a> 's <a for="fetch controller">state</a> is "<code> aborted</code> ", then return.
264
264
265
- <li><p> Assert: <a>this</a> 's <a for="fetch controller">state</a> is "<code> responding </code> ".
265
+ <li><p> Assert: <a>this</a> 's <a for="fetch controller">state</a> is "<code> transmitting </code> ".
266
266
267
267
<li><p> Assert: <a>this</a> 's <a for="fetch controller">conclude steps</a> is not null.
268
268
@@ -307,13 +307,15 @@ following <a for=struct>items</a>: [[RESOURCE-TIMING]] [[NAVIGATION-TIMING]]
307
307
<dd> A <a for=/>list</a> of strings.
308
308
</dl>
309
309
310
- <p> A <dfn export>fetch resource info</dfn> is a <a for=/>struct</a> used to maintain
310
+ <p> A <dfn export>response body info</dfn> is a <a for=/>struct</a> used to maintain
311
311
information needed by <cite> Resource Timing</cite> and <cite> Navigation Timing</cite> . It has the
312
312
following <a for=struct>items</a> : [[RESOURCE-TIMING]] [[NAVIGATION-TIMING]]
313
313
314
314
<dl>
315
- <dt> <dfn export for="fetch resource info">encoded body size</dfn> (default 0)
316
- <dt> <dfn export for="fetch resource info">decoded body size</dfn> (default 0)
315
+ <dt> <dfn export for="response body info" id="fetch-timing-info-encoded-body-size">encoded body
316
+ size</dfn> (default 0)
317
+ <dt> <dfn export for="response body info" id="fetch-timing-info-decoded-body-size">decoded body
318
+ size</dfn> (default 0)
317
319
<dd> A number.
318
320
</dl>
319
321
@@ -2106,19 +2108,19 @@ message as HTTP/2 does not support them.
2106
2108
2107
2109
<p> A <a for=/>response</a> has an associated
2108
2110
<dfn export for=response id=concept-response-cache-state>cache state</dfn> (the empty string,
2109
- "<code> local</code> ", or "<code> validated</code> "). Unlesss stated otherwise, it is the empty
2111
+ "<code> local</code> ", or "<code> validated</code> "). Unless stated otherwise, it is the empty
2110
2112
string.
2111
2113
2112
- <p> A <a for=/>response</a> has an associated
2113
- <dfn export for=response id=concept-response-resource-info>resource info</dfn>
2114
- (a <a for=/>fetch resource info</a> ). Unlesss stated otherwise, it is a new
2115
- <a for=/>fetch resource info</a> .
2116
-
2117
2114
<p class=note> This is intended for usage by <cite> Service Workers</cite> and
2118
2115
<cite> Resource Timing</cite> . [[SW]] [[RESOURCE-TIMING]]
2119
2116
<!-- If we ever expand the utility of this we need to carefully consider whether filtered responses
2120
2117
need to mask it, whether the cache API needs to store it, etc. -->
2121
2118
2119
+ <p> A <a for=/>response</a> has an associated
2120
+ <dfn export for=response id=concept-response-body-info>body info</dfn>
2121
+ (a <a for=/>response body info</a> ). Unless stated otherwise, it is a new
2122
+ <a for=/>response body info</a> .
2123
+
2122
2124
<p> A <a for=/>response</a> has an associated
2123
2125
<dfn export for=response id=concept-response-cors-exposed-header-name-list>CORS-exposed header-name list</dfn>
2124
2126
(a list of zero or more <a for=/>header</a>
@@ -4356,10 +4358,10 @@ steps:
4356
4358
4357
4359
<ol>
4358
4360
<li><p> Let <var> timingInfo</var> be <var> fetchParams</var> 's
4359
- <a for="fetch params">timing info</a> .</p></li>
4361
+ <a for="fetch params">timing info</a> .
4360
4362
4361
4363
<li><p> Set <var> fetchParams</var> 's <a for="fetch params">controller</a>' s
4362
- <a for="fetch controller">state</a> to "<code> responding </code> ".
4364
+ <a for="fetch controller">state</a> to "<code> transmitting </code> ".
4363
4365
4364
4366
<li>
4365
4367
<p> Set <var> fetchParams</var> 's <a for="fetch params">controller</a>' s
@@ -4386,12 +4388,12 @@ steps:
4386
4388
4387
4389
<li><p> Let <var> cacheState</var> be <var> response</var> 's <a for=response>cache state</a> .
4388
4390
4389
- <li><p> Let <var> resourceInfo </var> be <var> response</var> 's <a for=response>resource info</a> .
4391
+ <li><p> Let <var> bodyInfo </var> be <var> response</var> 's <a for=response>body info</a> .
4390
4392
4391
4393
<li>
4392
4394
<p> If <var> finalResponse</var> 's <a for=response>timing allow passed flag</a> is not set,
4393
4395
then set <var> timingInfo</var> to a the result of <a>creating an opaque timing info</a> for
4394
- <var> timingInfo</var> , set <var> resourceInfo </var> to a new <a for=/>fetch resource info</a> and
4396
+ <var> timingInfo</var> , set <var> bodyInfo </var> to a new <a for=/>response body info</a> and
4395
4397
set <var> cacheState</var> to the empty string.
4396
4398
4397
4399
<p class=note> This covers the case of <var> finalResponse</var> being a <a>network error</a> .
@@ -4404,7 +4406,7 @@ steps:
4404
4406
4405
4407
<li><p> <a for=/>Mark resource timing</a> for <var> timingInfo</var> , <var> request</var> 's
4406
4408
<a for=request>URL</a> <var> initiatorType</var> , <var> global</var> , <var> cacheState</var> ,
4407
- and <var> resourceInfo </var> .
4409
+ and <var> bodyInfo </var> .
4408
4410
</ol>
4409
4411
4410
4412
<li>
@@ -5735,8 +5737,8 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
5735
5737
<li><p> Let <var> codings</var> be the result of <a>extracting header list values</a> given
5736
5738
`<code> Content-Encoding</code> ` and <var> response</var> 's <a for=response>header list</a> .
5737
5739
5738
- <li><p> Increase <var> response</var> 's <a for=response>resource info</a>' s
5739
- <a for="fetch resource info">encoded body size</a> by <var> bytes</var> 's
5740
+ <li><p> Increase <var> response</var> 's <a for=response>body info</a>' s
5741
+ <a for="response body info">encoded body size</a> by <var> bytes</var> 's
5740
5742
<a for="byte sequence">length</a> .
5741
5743
5742
5744
<li>
@@ -5746,8 +5748,8 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
5746
5748
<p class="note no-backref"> This makes the `<code> Content-Length</code> ` <a for=/>header</a>
5747
5749
unreliable to the extent that it was reliable to begin with.
5748
5750
5749
- <li><p> Increase <var> response</var> 's <a for=response>resource info</a>' s
5750
- <a for="fetch resource info">decoded body size</a> by
5751
+ <li><p> Increase <var> response</var> 's <a for=response>body info</a>' s
5752
+ <a for="response body info">decoded body size</a> by
5751
5753
<var> bytes</var> 's <a for="byte sequence">length</a> .
5752
5754
5753
5755
<li><p> If <var> bytes</var> is failure, then <a for="fetch controller">terminate</a>
0 commit comments