Re: [whatwg/fetch] Formalize reading bodies (#1172)

@domenic commented on this pull request.



> +
+     <li><p><a>Queue a fetch task</a> given <var>errorAlgorithm</var> and
+     <var>taskDestination</var>.
+    </ol>
+  </dl>
+
+ <li><p><a for=ReadableStreamDefaultReader>Read a chunk</a> from <var>reader</var> given
+ <var>readRequest</var>.
+</ol>
+
+<p>To <dfn export for=body>fully read</dfn> a <a for=/>body</a> <var>body</var>, given an algorithm
+<var>processBody</var>, an optional null or algorithm
+<dfn export for="body/fully read"><var>processError</var></dfn> (default null), and an optional
+null, <a for=/>parallel queue</a>, or <a for=/>global object</a>
+<dfn export for="body/fully read">taskDestination</dfn> (default null), run these steps.
+<var>processBody</var> must be an algorithm accepting failure or a <a for=/>byte sequence</a>. If

I think it doesn't need to handle the failure case; processError deals with that?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1172#pullrequestreview-593640794

Received on Thursday, 18 February 2021 21:01:52 UTC