@@ -6774,30 +6774,7 @@ i.e., when a <a>fetch group</a> is <a for="fetch group">terminated</a>, or after
6774
6774
<li><p> If <var> request</var> 's <a for=request>URL</a> is not a
6775
6775
<a>potentially trustworthy url</a> , then throw a "{{SecurityError}} " {{DOMException}} .
6776
6776
6777
- <li><p> Let <var> totalRequestLength</var> be the [=string/length=] of <var> request</var> 's
6778
- <a for=request>URL</a> , <a lt="URL serializer">serialized</a> with
6779
- [=URL serializer/exclude fragment=] set to true.
6780
-
6781
- <li><p> <a for=list>For each</a> (<var> name</var> , <var> value</var> ) in
6782
- <a for=request>header list</a> , increment <var> totalRequestLength</var> by <var> name</var> 's
6783
- [=byte sequence/length=] + <var> value</var> 's [=byte sequence/length=] .
6784
-
6785
- <li>
6786
- <p> If <var> request</var> 's <a for=request>body</a> is non-null then:
6787
-
6788
- <ol>
6789
- <li><p> If <var> request</var> 's
6790
- <a for=request>body</a> 's <a for=body>length</a> is null, then throw a {{TypeError}} .
6791
-
6792
- <li>
6793
- <p> If <var> request</var> 's <a for=request>body</a>' s <a for=body>source</a> is null, then throw a
6794
- {{TypeError}} .
6795
-
6796
- <p class=note> This disallows sending deferred fetches with a live {{ReadableStream}} .
6797
-
6798
- <li><p> Increment <var> totalRequestLength</var> by <var> request</var> 's
6799
- <a for=request>body</a> 's <a for=body>length</a> .
6800
- </ol>
6777
+ <li><p> Let <var> totalRequestLength</var> be <var> request</var> 's <a>total request length</a>
6801
6778
6802
6779
<li><p> If the <a>available deferred fetching quota</a> given <var> request</var> 's
6803
6780
<a for=request>client</a> and <var> request</var> 's <a for=request>URL</a>' s <a for=url>origin</a>
@@ -6836,6 +6813,39 @@ i.e., when a <a>fetch group</a> is <a for="fetch group">terminated</a>, or after
6836
6813
</ol>
6837
6814
</div>
6838
6815
6816
+ <div algorithm>
6817
+ <p> To compute the <dfn>total request length</dfn> of a <a for=/>request</a> <var> request</var> :
6818
+
6819
+ <ol>
6820
+ <li><p> Let <var> totalRequestLength</var> be the [=string/length=] of <var> request</var> 's
6821
+ <a for=request>URL</a> , <a lt="URL serializer">serialized</a> with
6822
+ [=URL serializer/exclude fragment=] set to true.
6823
+
6824
+ <li><p> <a for=list>For each</a> (<var> name</var> , <var> value</var> ) in
6825
+ <a for=request>header list</a> , increment <var> totalRequestLength</var> by <var> name</var> 's
6826
+ [=byte sequence/length=] + <var> value</var> 's [=byte sequence/length=] .
6827
+
6828
+ <li>
6829
+ <p> If <var> request</var> 's <a for=request>body</a> is non-null then:
6830
+
6831
+ <ol>
6832
+ <li><p> If <var> request</var> 's
6833
+ <a for=request>body</a> 's <a for=body>length</a> is null, then throw a {{TypeError}} .
6834
+
6835
+ <li>
6836
+ <p> If <var> request</var> 's <a for=request>body</a>' s <a for=body>source</a> is null, then throw a
6837
+ {{TypeError}} .
6838
+
6839
+ <p class=note> This disallows sending deferred fetches with a live {{ReadableStream}} .
6840
+
6841
+ <li><p> Increment <var> totalRequestLength</var> by <var> request</var> 's
6842
+ <a for=request>body</a> 's <a for=body>length</a> .
6843
+ </ol>
6844
+
6845
+ <li><ol> Return <var> totalRequestLength</var> .
6846
+ </ol>
6847
+ </div>
6848
+
6839
6849
<div algorithm>
6840
6850
<p> To <dfn export>process deferred fetches</dfn> given a <a>fetch group</a> <var> fetchGroup</var> :
6841
6851
@@ -6939,9 +6949,8 @@ This specification defined a <a>policy-controlled feature</a> identified by the
6939
6949
<a for="fetch group">deferred fetch records</a> :</p>
6940
6950
6941
6951
<ol>
6942
- <li><p> Let <var> length</var> be <var> deferredRecord</var> 's
6943
- <a for="deferred fetch record">request</a> 's <a for=request>body</a>' s
6944
- <a for=body>length</a> .
6952
+ <li><p> Let <var> length</var> be the <a>total request length</a> of <var> deferredRecord</var> 's
6953
+ <a for="deferred fetch record">request</a> .
6945
6954
6946
6955
<li><p> Decrement <var> remainingTotalQuota</var> by <var> length</var> .
6947
6956
0 commit comments