@@ -1764,14 +1764,6 @@ message as HTTP/2 does not support them.
1764
1764
<dfn export for=response id=concept-response-body>body</dfn> (null or a
1765
1765
<a for=/>body</a> ). Unless stated otherwise it is null.
1766
1766
1767
- <p> A <a for=/>response</a> has an associated
1768
- <dfn export for=response id=concept-response-trailer>trailer</dfn> (a
1769
- <a for=/>header list</a> ). Unless stated otherwise it is empty.
1770
-
1771
- <p> A <a for=/>response</a> has an associated
1772
- <dfn export for=response id=concept-response-trailer-failed>trailer failed flag</dfn> , which is
1773
- initially unset.
1774
-
1775
1767
<p> A <a for=/>response</a> has an associated
1776
1768
<dfn export for=response id=concept-response-cache-state>cache state</dfn> (the empty string or
1777
1769
"<code> local</code> "). Unlesss stated otherwise, it is the empty string.
@@ -1842,9 +1834,8 @@ known as an <dfn export id=concept-aborted-network-error>aborted network error</
1842
1834
<a for=/>response</a> whose
1843
1835
<a for=response>status</a> is always <code> 0</code> ,
1844
1836
<a for=response>status message</a> is always the empty byte sequence,
1845
- <a for=response>header list</a> is always empty,
1846
- <a for=response>body</a> is always null, and
1847
- <a for=response>trailer</a> is always empty.
1837
+ <a for=response>header list</a> is always empty, and
1838
+ <a for=response>body</a> is always null.
1848
1839
1849
1840
<hr>
1850
1841
@@ -1873,36 +1864,33 @@ which is only "accessible" to internal specification algorithms and is never a
1873
1864
1874
1865
<p> A <dfn export id=concept-filtered-response-cors>CORS filtered response</dfn> is a
1875
1866
<a>filtered response</a> whose
1876
- <a for=response>type</a> is "<code> cors</code> ",
1867
+ <a for=response>type</a> is "<code> cors</code> " and
1877
1868
<a for=response>header list</a> excludes any
1878
1869
<a for=/>headers</a> in
1879
1870
<a for=internal>internal response</a> 's
1880
1871
<a for=response>header list</a> whose
1881
1872
<a for=header>name</a> is <em> not</em> a
1882
1873
<a>CORS-safelisted response-header name</a> , given
1883
1874
<a for=internal>internal response</a> 's
1884
- <a for=response>CORS-exposed header-name list</a> , and
1885
- <a for=response>trailer</a> is empty.
1875
+ <a for=response>CORS-exposed header-name list</a> .
1886
1876
1887
1877
<p> An <dfn export id=concept-filtered-response-opaque>opaque filtered response</dfn> is a
1888
1878
<a>filtered response</a> whose
1889
1879
<a for=response>type</a> is "<code> opaque</code> ",
1890
1880
<a for=response>URL list</a> is the empty list,
1891
1881
<a for=response>status</a> is <code> 0</code> ,
1892
1882
<a for=response>status message</a> is the empty byte sequence,
1893
- <a for=response>header list</a> is empty,
1894
- <a for=response>body</a> is null, and
1895
- <a for=response>trailer</a> is empty.
1883
+ <a for=response>header list</a> is empty, and
1884
+ <a for=response>body</a> is null.
1896
1885
1897
1886
<p> An
1898
1887
<dfn export id=concept-filtered-response-opaque-redirect>opaque-redirect filtered response</dfn>
1899
1888
is a <a>filtered response</a> whose
1900
1889
<a for=response>type</a> is "<code> opaqueredirect</code> ",
1901
1890
<a for=response>status</a> is <code> 0</code> ,
1902
1891
<a for=response>status message</a> is the empty byte sequence,
1903
- <a for=response>header list</a> is empty,
1904
- <a for=response>body</a> is null, and
1905
- <a for=response>trailer</a> is empty.
1892
+ <a for=response>header list</a> is empty, and
1893
+ <a for=response>body</a> is null.
1906
1894
1907
1895
<div class="note no-backref">
1908
1896
<p> Exposing the <a for=response>URL list</a> for
@@ -3649,14 +3637,6 @@ optionally with a <i>recursive flag</i>, run these steps:
3649
3637
<li><p> <a>Queue a fetch task</a> on <var> request</var> to
3650
3638
<a>process response end-of-body</a> for <var> response</var> .
3651
3639
3652
- <li><p> Wait for either <var> internalResponse</var> 's <a for=response>trailer</a> ,
3653
- if any, or for the ongoing fetch to <a for=fetch lt=terminated>terminate</a> . <span class=note> See
3654
- <a href=https://tools.ietf.org/html/rfc7230#section-4.1.2>section 4.1.2</a> of
3655
- [[!HTTP]] .</span>
3656
-
3657
- <li><p> If the ongoing fetch is <a for=fetch>terminated</a> , then set <var> internalResponse</var> 's
3658
- <a for=response>trailer failed flag</a> .
3659
-
3660
3640
<li><p> Set <var> request</var> 's <a>done flag</a> .
3661
3641
3662
3642
<li><p> <a>Queue a fetch task</a> on <var> request</var> to <a>process response done</a>
@@ -6396,7 +6376,6 @@ interface Response {
6396
6376
readonly attribute boolean ok;
6397
6377
readonly attribute ByteString statusText;
6398
6378
[SameObject] readonly attribute Headers headers;
6399
- readonly attribute Promise<Headers> trailer;
6400
6379
6401
6380
[NewObject] Response clone();
6402
6381
};
@@ -6418,10 +6397,6 @@ enum ResponseType { "basic", "cors", "default", "error", "opaque", "opaqueredire
6418
6397
<p> A {{Response}} object also has an associated <dfn for=Response export>headers</dfn> (null or a
6419
6398
{{Headers}} object), initially null.
6420
6399
6421
- <p> A {{Response}} object also has an associated
6422
- <dfn id=concept-response-trailer-promise for=Response>trailer promise</dfn> (a promise). <span class=note> Used
6423
- for the {{Response/trailer}} attribute.</span>
6424
-
6425
6400
<p> A {{Response}} object's <a for=Body>body</a> is its
6426
6401
<a for=Response>response</a> 's <a for=response>body</a> .
6427
6402
@@ -6484,10 +6459,6 @@ constructor, when invoked, must run these steps:
6484
6459
<a>current settings object</a> 's
6485
6460
<a for="environment settings object">HTTPS state</a> .
6486
6461
6487
- <li><p> Resolve <var> r</var> 's <a for=Response>trailer promise</a>
6488
- with a new {{Headers}} object whose <a for=Headers>guard</a> is
6489
- "<code> immutable</code> ".
6490
-
6491
6462
<li><p> Return <var> r</var> .
6492
6463
</ol>
6493
6464
@@ -6566,9 +6537,6 @@ must return the <a>context object</a>'s <a for=Response>response</a>'s
6566
6537
<p> The <dfn attribute for=Response><code>headers</code></dfn> attribute's getter, when invoked, must
6567
6538
return the <a>context object</a> 's <a for=Response>headers</a> .
6568
6539
6569
- <p> The <dfn attribute for=Response><code>trailer</code></dfn> attribute's getter, when invoked, must
6570
- return the <a>context object</a> 's <a for=Response>trailer promise</a> .
6571
-
6572
6540
<hr>
6573
6541
6574
6542
<p> The <dfn method for=Response><code>clone()</code></dfn> method, when invoked, must
@@ -6591,11 +6559,6 @@ run these steps:
6591
6559
<a for=Headers>header list</a> , and <a for=Headers>guard</a> is the <a>context object</a> 's
6592
6560
<a for=Response>headers</a> 's <a for=Headers>guard</a> .
6593
6561
6594
- <li><p> Upon fulfillment of the <a>context object</a> 's <a for=Response>trailer promise</a> , resolve
6595
- <var> clonedResponseObject</var> 's <a for=Response>trailer promise</a> with a new {{Headers}} object
6596
- whose <a for=Headers>guard</a> is "<code> immutable</code> ", and whose
6597
- <a for="Headers">header list</a> is <var> clonedResponse</var> 's <a for=response>trailer</a> .
6598
-
6599
6562
<li><p> Return <var> clonedResponseObject</var> .
6600
6563
6601
6564
<li><p> Return <var> clonedResponse</var> .
@@ -6682,36 +6645,6 @@ method, must run these steps:
6682
6645
<li><p> Resolve <var> p</var> with <var> responseObject</var> .
6683
6646
</ol>
6684
6647
6685
- <p> To <a>process response done</a> for <var> response</var> , run these substeps:
6686
-
6687
- <ol>
6688
- <li><p> If <var> locallyAborted</var> is true, terminate these substeps.
6689
-
6690
- <li><p> Let <var> trailerObject</var> be a new {{Headers}} object whose
6691
- <a for=Headers>guard</a> is "<code> immutable</code> ".
6692
-
6693
- <li>
6694
- <p> If <var> response</var> 's <a for=response>trailer failed flag</a> is set, then:
6695
-
6696
- <ol>
6697
- <li><p> If <var> response</var> 's <a for=response>aborted flag</a> is set, reject
6698
- <var> responseObject</var> 's <a for=Response>trailer promise</a> with an
6699
- "<code> <a exception>AbortError</a> </code> " {{DOMException}} .
6700
-
6701
- <li><p> Otherwise, reject <var> responseObject</var> 's <a for=Response>trailer promise</a> with
6702
- a {{TypeError}} .
6703
-
6704
- <li><p> Terminate these substeps.
6705
- </ol>
6706
-
6707
- <li><p> Associate <var> trailerObject</var> with <var> response</var> 's
6708
- <a for=response>trailer</a> .
6709
-
6710
- <li><p> Resolve <var> responseObject</var> 's
6711
- <a for=Response>trailer promise</a> with
6712
- <var> trailerObject</var> .
6713
- </ol>
6714
-
6715
6648
<li><p> Return <var> p</var> .
6716
6649
</ol>
6717
6650
@@ -6732,12 +6665,6 @@ method, must run these steps:
6732
6665
6733
6666
<li><p> If <var> responseObject</var> is null, then return.
6734
6667
6735
- <li>
6736
- <p> Reject <var> responseObject</var> 's <a for=Response>trailer promise</a> with <var> error</var> .
6737
-
6738
- <p class=note> This is a no-op if <var> responseObject</var> 's <a for=Response>trailer promise</a>
6739
- has already fulfilled.
6740
-
6741
6668
<li><p> Let <var> response</var> be <var> responseObject</var> 's <a for=Response>response</a> .
6742
6669
6743
6670
<li><p> If <var> response</var> 's <a for=response>body</a> is not null and is
0 commit comments