@@ -1325,6 +1325,7 @@ worked on in <a href=https://github.com/whatwg/fetch/issues/1156>issue #1156</a>
1325
1325
initially null.
1326
1326
</ul>
1327
1327
1328
+ <div algorithm>
1328
1329
<p> To <dfn export for=body id=concept-body-clone>clone</dfn> a
1329
1330
<a for=/>body</a> <var> body</var> , run these steps:
1330
1331
@@ -1338,13 +1339,17 @@ worked on in <a href=https://github.com/whatwg/fetch/issues/1156>issue #1156</a>
1338
1339
<a for=body>stream</a> is <var> out2</var> and other members are copied from
1339
1340
<var> body</var> .
1340
1341
</ol>
1342
+ </div>
1341
1343
1344
+ <div algorithm>
1342
1345
<p> To get a <a for=/>byte sequence</a> <var> bytes</var>
1343
1346
<dfn export for="byte sequence">as a body</dfn> , return the <a for="body with type">body</a> of the
1344
1347
result of <a for=BodyInit>safely extracting</a> <var> bytes</var> .
1348
+ </div>
1345
1349
1346
1350
<hr>
1347
1351
1352
+ <div algorithm>
1348
1353
<p> To <dfn export for=body>incrementally read</dfn> a <a for=/>body</a> <var> body</var> , given an
1349
1354
algorithm <var> processBodyChunk</var> , an algorithm <var> processEndOfBody</var> , an algorithm
1350
1355
<var> processBodyError</var> , and an optional null, <a for=/>parallel queue</a> , or
@@ -1367,7 +1372,9 @@ must be an algorithm accepting an exception.
1367
1372
<var> taskDestination</var> , <var> processBodyChunk</var> , <var> processEndOfBody</var> , and
1368
1373
<var> processBodyError</var> .
1369
1374
</ol>
1375
+ </div>
1370
1376
1377
+ <div algorithm>
1371
1378
<p> To perform the <dfn>incrementally-read loop</dfn> , given a {{ReadableStreamDefaultReader}} object
1372
1379
<var> reader</var> , <a for=/>parallel queue</a> or <a for=/>global object</a>
1373
1380
<var> taskDestination</var> , algorithm <var> processBodyChunk</var> , algorithm
@@ -1426,7 +1433,9 @@ must be an algorithm accepting an exception.
1426
1433
<li><p> <a for=ReadableStreamDefaultReader>Read a chunk</a> from <var> reader</var> given
1427
1434
<var> readRequest</var> .
1428
1435
</ol>
1436
+ </div>
1429
1437
1438
+ <div algorithm>
1430
1439
<p> To <dfn export for=body>fully read</dfn> a <a for=/>body</a> <var> body</var> , given an algorithm
1431
1440
<var> processBody</var> , an algorithm <var> processBodyError</var> , and an optional null,
1432
1441
<a for=/>parallel queue</a> , or <a for=/>global object</a> <var> taskDestination</var> (default
@@ -1450,7 +1459,9 @@ null), run these steps. <var>processBody</var> must be an algorithm accepting a
1450
1459
<li><p> <a for=promise>React</a> to <var> promise</var> with <var> fulfilledSteps</var> and
1451
1460
<var> rejectedSteps</var> .
1452
1461
</ol>
1462
+ </div>
1453
1463
1464
+ <div algorithm>
1454
1465
<p> To <dfn export lt="fully reading body as promise">fully read body as promise</dfn> , given a
1455
1466
<a for=/>body</a> <var> body</var> , run these steps:
1456
1467
@@ -1462,6 +1473,7 @@ null), run these steps. <var>processBody</var> must be an algorithm accepting a
1462
1473
<li><p> Return the result of <a for=ReadableStreamDefaultReader>reading all bytes</a> from
1463
1474
<var> reader</var> .
1464
1475
</ol>
1476
+ </div>
1465
1477
1466
1478
<hr>
1467
1479
@@ -1471,6 +1483,7 @@ null), run these steps. <var>processBody</var> must be an algorithm accepting a
1471
1483
1472
1484
<hr>
1473
1485
1486
+ <div algorithm>
1474
1487
<p> To <dfn export>handle content codings</dfn> given <var> codings</var> and <var> bytes</var> , run
1475
1488
these steps:
1476
1489
@@ -1482,6 +1495,7 @@ these steps:
1482
1495
</ol>
1483
1496
<!-- XXX https://github.com/whatwg/fetch/issues/716
1484
1497
https://github.com/httpwg/http-core/issues/58 -->
1498
+ </div>
1485
1499
1486
1500
1487
1501
<h4 id=requests>Requests</h4>
@@ -2110,6 +2124,7 @@ or "<code>object</code>".
2110
2124
2111
2125
<hr>
2112
2126
2127
+ <div algorithm>
2113
2128
<p> A <a for=/>request</a> <var> request</var> has a
2114
2129
<dfn for=request id=concept-request-tainted-origin>redirect-tainted origin</dfn> if these steps
2115
2130
return true:
@@ -2133,7 +2148,9 @@ return true:
2133
2148
2134
2149
<li> Return false.
2135
2150
</ol>
2151
+ </div>
2136
2152
2153
+ <div algorithm>
2137
2154
<p> <dfn>Serializing a request origin</dfn> , given a <a for=/>request</a> <var> request</var> , is to
2138
2155
run these steps:
2139
2156
@@ -2144,13 +2161,17 @@ run these steps:
2144
2161
<li><p> Return <var> request</var> 's <a for=request>origin</a> ,
2145
2162
<a lt="ASCII serialization of an origin">serialized</a> .
2146
2163
</ol>
2164
+ </div>
2147
2165
2166
+ <div algorithm>
2148
2167
<p> <dfn>Byte-serializing a request origin</dfn> , given a <a for=/>request</a> <var> request</var> ,
2149
2168
is to return the result of <a>serializing a request origin</a> with <var> request</var> ,
2150
2169
<a>isomorphic encoded</a> .
2170
+ </div>
2151
2171
2152
2172
<hr>
2153
2173
2174
+ <div algorithm>
2154
2175
<p> To <dfn export for=request id=concept-request-clone>clone</dfn> a
2155
2176
<a for=/>request</a> <var> request</var> , run these steps:
2156
2177
@@ -2164,6 +2185,7 @@ is to return the result of <a>serializing a request origin</a> with <var>request
2164
2185
2165
2186
<li><p> Return <var> newRequest</var> .
2166
2187
</ol>
2188
+ </div>
2167
2189
2168
2190
<hr>
2169
2191
@@ -2199,6 +2221,7 @@ source of security bugs. Please seek security review for features that deal with
2199
2221
2200
2222
<hr>
2201
2223
2224
+ <div algorithm>
2202
2225
<p> To <dfn export>serialize a response URL for reporting</dfn> , given a <a for=/>response</a>
2203
2226
<var> response</var> , run these steps:
2204
2227
@@ -2221,7 +2244,9 @@ source of security bugs. Please seek security review for features that deal with
2221
2244
<li><p> Return the <a lt="URL serializer">serialization</a> of <var> url</var> with
2222
2245
<a for="URL serializer"><i>exclude fragment</i></a> set to true.
2223
2246
</ol>
2247
+ </div>
2224
2248
2249
+ <div algorithm>
2225
2250
<p> To check if <dfn export>Cross-Origin-Embedder-Policy allows credentials</dfn> , given a
2226
2251
<a for=/>request</a> <var> request</var> , run these steps:
2227
2252
@@ -2242,6 +2267,7 @@ source of security bugs. Please seek security review for features that deal with
2242
2267
2243
2268
<li><p> Return false.</p>
2244
2269
</ol>
2270
+ </div>
2245
2271
2246
2272
2247
2273
<h4 id=responses>Responses</h4>
0 commit comments