@@ -191,7 +191,8 @@ lt="authentication entry">authentication entries</a> (for HTTP authentication).
191
191
<dt> <dfn for="fetch params">request</dfn>
192
192
<dd> A <a for=/>request</a> .
193
193
194
- <dt> <dfn for="fetch params">process request body</dfn> (default null)
194
+ <dt> <dfn for="fetch params" id=fetch-params-process-request-body>process request body chunk length</dfn>
195
+ (default null)
195
196
<dt> <dfn for="fetch params">process request end-of-body</dfn> (default null)
196
197
<dt> <dfn for="fetch params">process response</dfn> (default null)
197
198
<dt> <dfn for="fetch params">process response end-of-body</dfn> (default null)
@@ -3667,15 +3668,15 @@ can be used to capture uploads.
3667
3668
3668
3669
<p> To <dfn export id=concept-fetch>fetch</dfn> , given a <a for=/>request</a> <var> request</var> , an
3669
3670
optional algorithm
3670
- <dfn export for=fetch id=process-request-body><var>processRequestBody </var></dfn> , an optional
3671
- algorithm
3671
+ <dfn export for=fetch id=process-request-body><var>processRequestBodyChunkLength </var></dfn> , an
3672
+ optional algorithm
3672
3673
<dfn export for=fetch id=process-request-end-of-body oldids=process-request-end-of-file><var>processRequestEndOfBody</var></dfn> ,
3673
3674
an optional algorithm <dfn export for=fetch id=process-response><var>processResponse</var></dfn> ,
3674
3675
an optional algorithm
3675
3676
<dfn export for=fetch id=process-response-end-of-body oldids=process-response-end-of-file><var>processResponseEndOfBody</var></dfn> ,
3676
3677
an optional algorithm <dfn export for=fetch><var>processResponseDone</var></dfn> , and an optional
3677
3678
boolean <dfn export for=fetch><var>useParallelQueue</var></dfn> (default false), run the steps
3678
- below. If given, <var> processRequestBody </var> must be an algorithm accepting an integer
3679
+ below. If given, <var> processRequestBodyChunkLength </var> must be an algorithm accepting an integer
3679
3680
representing the number of bytes transmitted. If given, <var> processRequestEndOfBody</var> must be
3680
3681
an algorithm accepting no arguments. If given, <var> processResponse</var> must be an algorithm
3681
3682
accepting a <a for=/>response</a> . If given, <var> processResponseEndOfBody</var> must be an
@@ -3731,7 +3732,8 @@ the request.
3731
3732
<li><p> Let <var> fetchParams</var> be a new <a for=/>fetch params</a> whose
3732
3733
<a for="fetch params">request</a> is <var> request</var> ,
3733
3734
<a for="fetch params">timing info</a> is <var> timingInfo</var> ,
3734
- <a for="fetch params">process request body</a> is <var> processRequestBody</var> ,
3735
+ <a for="fetch params">process request body chunk length</a> is
3736
+ <var> processRequestBodyChunkLength</var> ,
3735
3737
<a for="fetch params">process request end-of-body</a> is <var> processRequestEndOfBody</var> ,
3736
3738
<a for="fetch params">process response</a> is <var> processResponse</var> ,
3737
3739
<a for="fetch params">process response end-of-body</a> is <var> processResponseEndOfBody</var> ,
@@ -5352,9 +5354,10 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
5352
5354
5353
5355
<li><p> Run this step <a>in parallel</a> : transmit <var> bytes</var> .
5354
5356
5355
- <li><p> If <var> fetchParams</var> 's <a for="fetch params">process request body</a> is
5356
- non-null, then run <var> fetchParams</var> 's <a for="fetch params">process request body</a>
5357
- given <var> bytes</var> 's <a for="byte sequence">length</a> .
5357
+ <li><p> If <var> fetchParams</var> 's
5358
+ <a for="fetch params">process request body chunk length</a> is non-null, then run
5359
+ <var> fetchParams</var> 's <a for="fetch params">process request body chunk length</a> given
5360
+ <var> bytes</var> 's <a for="byte sequence">length</a> .
5358
5361
</ol>
5359
5362
5360
5363
<li>
@@ -7897,7 +7900,7 @@ arguments. For those arguments that take an algorithm: the algorithm will be cal
7897
7900
in a <a for=/>parallel queue</a> if <a for=fetch><i>useParallelQueue</i></a> is true).
7898
7901
7899
7902
<dl>
7900
- <dt> <a for=fetch><i>processRequestBody </i></a>
7903
+ <dt> <a for=fetch><i>processRequestBodyChunkLength </i></a>
7901
7904
<dd><p> Takes an algorithm that will be passed the number of bytes that have been transmitted from
7902
7905
the <a for=/>request</a> 's <a for=request>body</a> . The algorithm will be invoked for each
7903
7906
transmitted chunk. Most standards will not need this.
@@ -7964,6 +7967,7 @@ Brad Porter,
7964
7967
Bryan Smith,
7965
7968
Caitlin Potter,
7966
7969
Cameron McCormack,
7970
+ Chirag S Kumar<!-- fictionistique; GitHub -->,
7967
7971
Chris Needham,
7968
7972
Chris Rebert,
7969
7973
Clement Pellerin,
0 commit comments