@@ -4096,6 +4096,7 @@ a <a for=/>request</a> and one or more algorithms to run at various points durin
4096
4096
<a for=/>response</a> is passed to the last two algorithms listed below. The first two algorithms
4097
4097
can be used to capture uploads.
4098
4098
4099
+ <div algorithm="fetch">
4099
4100
<p> To <dfn export id=concept-fetch>fetch</dfn> , given a <a for=/>request</a> <var> request</var> , an
4100
4101
optional algorithm
4101
4102
<dfn export for=fetch id=process-request-body><var>processRequestBodyChunkLength</var></dfn> , an
@@ -4310,10 +4311,12 @@ the response. [[!HTTP-CACHING]]
4310
4311
4311
4312
<li><p> Return <var> fetchParams</var> 's <a for="fetch params">controller</a> .
4312
4313
</ol>
4314
+ </div>
4313
4315
4314
4316
4315
4317
<h3 id=main-fetch>Main fetch</h3>
4316
4318
4319
+ <div algorithm>
4317
4320
<p> To <dfn id=concept-main-fetch>main fetch</dfn> , given a <a for=/>fetch params</a>
4318
4321
<var> fetchParams</var> and an optional boolean <var> recursive</var> (default false), run these
4319
4322
steps:
@@ -4611,9 +4614,11 @@ steps:
4611
4614
<li><p> Otherwise, run <a>fetch response handover</a> given <var> fetchParams</var> and
4612
4615
<var> response</var> .
4613
4616
</ol>
4617
+ </div>
4614
4618
4615
4619
<hr>
4616
4620
4621
+ <div algorithm>
4617
4622
<p> The <dfn id=fetch-finale>fetch response handover</dfn> , given a <a for=/>fetch params</a>
4618
4623
<var> fetchParams</var> and a <a for=/>response</a> <var> response</var> , run these steps:
4619
4624
@@ -4678,9 +4683,9 @@ steps:
4678
4683
<var> response</var> 's <a for=response>status</a> .
4679
4684
4680
4685
<li><p> If <var> fetchParams</var> 's <a for="fetch params">request</a>' s
4681
- <a for=request>initiator type</a> is non-null, then
4682
- <a for=/>mark resource timing</a> given <var> timingInfo </var> , <var > request</var > 's
4683
- <a for=request>URL</a> , <a for="fetch params">request</a> 's
4686
+ <a for=request>initiator type</a> is non-null, then <a for=/>mark resource timing</a> given
4687
+ <var> timingInfo </var> , <var> fetchParams </var> 's <a for="fetch params" >request</a >' s
4688
+ <a for=request>URL</a> , <var> fetchParams </var> 's < a for="fetch params">request</a>' s
4684
4689
<a for=request>initiator type</a> , <var> global</var> , <var> cacheState</var> ,
4685
4690
<var> bodyInfo</var> , and <var> responseStatus</var> .
4686
4691
</ol>
@@ -4763,9 +4768,12 @@ steps:
4763
4768
<a for="fetch params">task destination</a> .
4764
4769
</ol>
4765
4770
</ol>
4771
+ </div>
4772
+
4766
4773
4767
4774
<h3 id=scheme-fetch oldids=basic-fetch>Scheme fetch</h3>
4768
4775
4776
+ <div algorithm>
4769
4777
<p> To <dfn id=concept-scheme-fetch oldids=concept-basic-fetch>scheme fetch</dfn> , given a
4770
4778
<a for=/>fetch params</a> <var> fetchParams</var> :
4771
4779
@@ -4854,10 +4862,12 @@ steps:
4854
4862
4855
4863
<li><p> Return a <a for=/>network error</a> .
4856
4864
</ol>
4865
+ </div>
4857
4866
4858
4867
4859
4868
<h3 id=http-fetch>HTTP fetch</h3>
4860
4869
4870
+ <div algorithm>
4861
4871
<p> To <dfn export id=concept-http-fetch>HTTP fetch</dfn> , given a <a for=/>fetch params</a>
4862
4872
<var> fetchParams</var> and an optional boolean <var> makeCORSPreflight</var> (default false), run
4863
4873
these steps:
@@ -5064,10 +5074,12 @@ these steps:
5064
5074
<a for=response>body</a> 's <a for=body>stream</a> is still being enqueued to after
5065
5075
returning.</span>
5066
5076
</ol>
5077
+ </div>
5067
5078
5068
5079
5069
5080
<h3 id=http-redirect-fetch>HTTP-redirect fetch</h3>
5070
5081
5082
+ <div algorithm>
5071
5083
<p> To <dfn export id=concept-http-redirect-fetch>HTTP-redirect fetch</dfn> , given a
5072
5084
<a for=/>fetch params</a> <var> fetchParams</var> and a <a for=/>response</a> <var> response</var> ,
5073
5085
run these steps:
@@ -5172,10 +5184,12 @@ run these steps:
5172
5184
<p class=note> This has to invoke <a>main fetch</a> to get <var> request</var> 's
5173
5185
<a for=request>response tainting</a> correct.
5174
5186
</ol>
5187
+ </div>
5175
5188
5176
5189
5177
5190
<h3 id=http-network-or-cache-fetch>HTTP-network-or-cache fetch</h3>
5178
5191
5192
+ <div algorithm>
5179
5193
<p> To <dfn id=concept-http-network-or-cache-fetch>HTTP-network-or-cache fetch</dfn> , given a
5180
5194
<a for=/>fetch params</a> <var> fetchParams</var> , an optional boolean
5181
5195
<var> isAuthenticationFetch</var> (default false), and an optional boolean
@@ -5698,10 +5712,12 @@ run these steps:
5698
5712
<a for=response>body</a> 's <a for=body>stream</a> is still being enqueued to after
5699
5713
returning.</span>
5700
5714
</ol>
5715
+ </div>
5701
5716
5702
5717
5703
5718
<h3 id=http-network-fetch>HTTP-network fetch</h3>
5704
5719
5720
+ <div algorithm>
5705
5721
<p> To <dfn id=concept-http-network-fetch>HTTP-network fetch</dfn> , given a <a for=/>fetch params</a>
5706
5722
<var> fetchParams</var> , an optional boolean <var> includeCredentials</var> (default false), and an
5707
5723
optional boolean <var> forceNewConnection</var> (default false), run these steps:
@@ -5942,7 +5958,7 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
5942
5958
<a href=https://httpwg.org/specs/rfc6265.html#privacy-considerations>section 7</a> of
5943
5959
[[!COOKIES]] ), then run the "set-cookie-string" parsing algorithm (see
5944
5960
<a href=https://httpwg.org/specs/rfc6265.html#set-cookie>section 5.2</a> of [[!COOKIES]] ) on the
5945
- <a for=header>value</a> of each <var > header</var > whose <a for=header>name</a> is a
5961
+ <a for=header>value</a> of each <a for=/ >header</a > whose <a for=header>name</a> is a
5946
5962
<a>byte-case-insensitive</a> match for `<code> Set-Cookie</code> ` in <var> response</var> 's
5947
5963
<a for=response>header list</a> , if any, and <var> request</var> 's <a for=request>current URL</a> .
5948
5964
@@ -6046,6 +6062,7 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
6046
6062
<a for=response>body</a> 's <a for=body>stream</a> is still being enqueued to after
6047
6063
returning.</span>
6048
6064
</ol>
6065
+ </div>
6049
6066
6050
6067
6051
6068
<h3 id=cors-preflight-fetch>CORS-preflight fetch</h3>
@@ -6055,6 +6072,7 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
6055
6072
populates the <a>CORS-preflight cache</a> to minimize the number of these
6056
6073
<a lt="CORS-preflight fetch">fetches</a> .
6057
6074
6075
+ <div algorithm>
6058
6076
<p> To <dfn id=cors-preflight-fetch-0>CORS-preflight fetch</dfn> , given a <a for=/>request</a>
6059
6077
<var> request</var> , run these steps:
6060
6078
@@ -6183,6 +6201,7 @@ populates the <a>CORS-preflight cache</a> to minimize the number of these
6183
6201
6184
6202
<li><p> Otherwise, return a <a>network error</a> .
6185
6203
</ol>
6204
+ </div>
6186
6205
6187
6206
6188
6207
<h3 id=cors-preflight-cache>CORS-preflight cache</h3>
@@ -6209,6 +6228,7 @@ populates the <a>CORS-preflight cache</a> to minimize the number of these
6209
6228
<a for="cache entry">max-age</a> field have passed since storing the entry. <a>Cache entries</a> may
6210
6229
be removed before that moment arrives.
6211
6230
6231
+ <div algorithm>
6212
6232
<p> To <dfn id=concept-cache-create-entry>create a new cache entry</dfn> , given <var> request</var> ,
6213
6233
<var> max-age</var> , <var> method</var> , and <var> headerName</var> , run these steps:
6214
6234
@@ -6243,6 +6263,7 @@ be removed before that moment arrives.
6243
6263
6244
6264
<li><p> <a for=list>Append</a> <var> entry</var> to the user agent's <a>CORS-preflight cache</a> .
6245
6265
</ol>
6266
+ </div>
6246
6267
6247
6268
<p> To <dfn id=concept-cache-clear>clear cache entries</dfn> , given a <var> request</var> ,
6248
6269
<a for=list>remove</a> any <a>cache entries</a> in the user agent's <a>CORS-preflight cache</a>
@@ -6289,6 +6310,7 @@ agent's <a>CORS-preflight cache</a> for which there is a <a>cache entry match</a
6289
6310
6290
6311
<h3 id=cors-check>CORS check</h3>
6291
6312
6313
+ <div algorithm>
6292
6314
<p> To perform a <dfn id=concept-cors-check>CORS check</dfn> for a <var> request</var> and
6293
6315
<var> response</var> , run these steps:
6294
6316
@@ -6319,10 +6341,12 @@ agent's <a>CORS-preflight cache</a> for which there is a <a>cache entry match</a
6319
6341
6320
6342
<li><p> Return failure.
6321
6343
</ol>
6344
+ </div>
6322
6345
6323
6346
6324
6347
<h3 id=tao-check>TAO check</h3>
6325
6348
6349
+ <div algorithm>
6326
6350
<p> To perform a <dfn id=concept-tao-check>TAO check</dfn> for a <var> request</var> and
6327
6351
<var> response</var> , run these steps:
6328
6352
@@ -6355,6 +6379,7 @@ agent's <a>CORS-preflight cache</a> for which there is a <a>cache entry match</a
6355
6379
6356
6380
<li><p> Return failure.
6357
6381
</ol>
6382
+ </div>
6358
6383
6359
6384
6360
6385
0 commit comments