Skip to content

Commit 7e5c922

Browse files
Editorial: rename processRequestBody
XHR PR: whatwg/xhr#333. Fixes #1320.
1 parent e2b59cf commit 7e5c922

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

fetch.bs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ lt="authentication entry">authentication entries</a> (for HTTP authentication).
191191
<dt><dfn for="fetch params">request</dfn>
192192
<dd>A <a for=/>request</a>.
193193

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)
195196
<dt><dfn for="fetch params">process request end-of-body</dfn> (default null)
196197
<dt><dfn for="fetch params">process response</dfn> (default null)
197198
<dt><dfn for="fetch params">process response end-of-body</dfn> (default null)
@@ -3667,15 +3668,15 @@ can be used to capture uploads.
36673668

36683669
<p>To <dfn export id=concept-fetch>fetch</dfn>, given a <a for=/>request</a> <var>request</var>, an
36693670
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
36723673
<dfn export for=fetch id=process-request-end-of-body oldids=process-request-end-of-file><var>processRequestEndOfBody</var></dfn>,
36733674
an optional algorithm <dfn export for=fetch id=process-response><var>processResponse</var></dfn>,
36743675
an optional algorithm
36753676
<dfn export for=fetch id=process-response-end-of-body oldids=process-response-end-of-file><var>processResponseEndOfBody</var></dfn>,
36763677
an optional algorithm <dfn export for=fetch><var>processResponseDone</var></dfn>, and an optional
36773678
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
36793680
representing the number of bytes transmitted. If given, <var>processRequestEndOfBody</var> must be
36803681
an algorithm accepting no arguments. If given, <var>processResponse</var> must be an algorithm
36813682
accepting a <a for=/>response</a>. If given, <var>processResponseEndOfBody</var> must be an
@@ -3731,7 +3732,8 @@ the request.
37313732
<li><p>Let <var>fetchParams</var> be a new <a for=/>fetch params</a> whose
37323733
<a for="fetch params">request</a> is <var>request</var>,
37333734
<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>,
37353737
<a for="fetch params">process request end-of-body</a> is <var>processRequestEndOfBody</var>,
37363738
<a for="fetch params">process response</a> is <var>processResponse</var>,
37373739
<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:
53525354

53535355
<li><p>Run this step <a>in parallel</a>: transmit <var>bytes</var>.
53545356

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>.
53585361
</ol>
53595362

53605363
<li>
@@ -7897,7 +7900,7 @@ arguments. For those arguments that take an algorithm: the algorithm will be cal
78977900
in a <a for=/>parallel queue</a> if <a for=fetch><i>useParallelQueue</i></a> is true).
78987901

78997902
<dl>
7900-
<dt><a for=fetch><i>processRequestBody</i></a>
7903+
<dt><a for=fetch><i>processRequestBodyChunkLength</i></a>
79017904
<dd><p>Takes an algorithm that will be passed the number of bytes that have been transmitted from
79027905
the <a for=/>request</a>'s <a for=request>body</a>. The algorithm will be invoked for each
79037906
transmitted chunk. Most standards will not need this.
@@ -7964,6 +7967,7 @@ Brad Porter,
79647967
Bryan Smith,
79657968
Caitlin Potter,
79667969
Cameron McCormack,
7970+
Chirag S Kumar<!-- fictionistique; GitHub -->,
79677971
Chris Needham,
79687972
Chris Rebert,
79697973
Clement Pellerin,

0 commit comments

Comments
 (0)