You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-header-name" title="concept-header-name">name</a> is <var>name</var>,
1341
-
return their <aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-header-value" title="concept-header-value">values</a> in
1342
-
list order as a single byte sequence separated from each other by a 0x2C 0x20 byte pair.
1343
-
1344
-
<li><p>If <ahref="#response">response</a>'s
1345
-
<aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-response-header-list" title="concept-response-header-list">header list</a> has
1346
-
one <aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-header" title="concept-header">header</a> whose
1347
-
<aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-header-name" title="concept-header-name">name</a> is <var>name</var>,
1348
-
return its <aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-header-value" title="concept-header-value">value</a>.
1349
-
1350
-
<li><p>Return null.
1338
+
<aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-response-header-list" title="concept-response-header-list">header list</a> has <em>no</em>
<aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-header-name" title="concept-header-name">name</a> is <var>name</var>, then return
1341
+
null.
1342
+
1343
+
<li><p>Return the
1344
+
<aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-header-value-combined" title="concept-header-value-combined">combined value</a> given
1345
+
<var>name</var> and <ahref="#response">response</a>'s
method must return <ahref="#response">response</a>'s
1382
-
<aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-response-header-list" title="concept-response-header-list">header list</a>, in
1383
-
list order, as a single byte sequence with each
1384
-
<aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-header" title="concept-header">header</a> separated by a 0x0D 0x0A
1385
-
byte pair, and each <aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-header-name" title="concept-header-name">name</a> and
1386
-
<aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-header-value" title="concept-header-value">value</a> of a
1387
-
<aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-header" title="concept-header">header</a> separated by a 0x3A 0x20
1388
-
byte pair.
1377
+
method, when invoked, must run these steps:</p>
1378
+
1379
+
<ol>
1380
+
<li><p>Let <var>output</var> be an empty byte sequence.
1381
+
1382
+
<li><p>Let <var>headers</var> be the result of running
1383
+
<aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-header-list-sort-and-combine" title="concept-header-list-sort-and-combine">sort and combine</a>
<p>For each <var>header</var> in <var>headers</var>, run these substeps:
1389
+
1390
+
<ol>
1391
+
<li><p>Append <var>header</var>'s
1392
+
<aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-header-name" title="concept-header-name">name</a>, followed by a 0x3A 0x20 byte
1393
+
pair, followed by <var>header</var>'s
1394
+
<aclass="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-header-value" title="concept-header-value">value</a>, to <var>output</var>.
1395
+
1396
+
<li><p>If <var>header</var> is not the last pair in <var>headers</var>, then append a 0x0D 0x0A
1397
+
byte pair, to <var>output</var>.
1398
+
</ol>
1399
+
1400
+
<li><p>Return <var>output</var>.
1401
+
</ol>
1389
1402
1390
1403
<pclass="note no-backref">The Fetch Standard filters <ahref="#response">response</a>'s
0 commit comments