diff --git a/fetch.bs b/fetch.bs index 17e833703..36a272150 100644 --- a/fetch.bs +++ b/fetch.bs @@ -213,18 +213,6 @@ of: queue a fetch task on request to process request end-of-body for request. -
To read a request, if request's -body is non-null, whenever -request's body is read from (i.e. -is transmitted or read by script), increase request's -body's -transmitted bytes with the amount of payload body -bytes transmitted and then queue a fetch task on request to -process request body for request. - -
worker
".
See handle fetch for usage of these terms. [[!SW]] +
To clone a
request request, run these steps:
@@ -1121,6 +1111,49 @@ or "worker
".
Return newRequest. +
To transmit body for a +request request, run these steps: + +
If body is null, then queue a fetch task on request to + process request end-of-body for request and abort these steps. + +
Let read be the result of reading a + chunk from body's stream. + +
When read is fulfilled with an object whose done
+ property is false and whose value
property is a
+ Uint8Array
object, run these substeps:
+
+
Let bytes be the byte sequence represented by the
+ Uint8Array
object.
+
+
Transmit bytes. + +
Increase body's transmitted bytes by bytes's + length. + +
Run the above step again. +
When read is fulfilled with an object whose done
+ property is true, queue a fetch task on request to
+ process request end-of-body for request.
+
+
When read is fulfilled with a value that matches with neither of the + above patterns, or read is rejected, terminate the + ongoing fetch with reason fatal. +
If response is not null, then run these substeps:
Read request. +
Transmit body for request.
Set actualResponse to response, if response is not a
filtered response, and to response's
@@ -3457,7 +3490,7 @@ steps:
"deprecated
" state value ought to be a temporary and last resort kind
of option.
-
Read request. +
Transmit body for request.
Let strategy be an object. The user agent may choose any object.