- From: Yoichi Osato <notifications@github.com>
- Date: Mon, 05 Apr 2021 19:27:47 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 6 April 2021 02:28:00 UTC
@yoichio commented on this pull request.
> + <li> Let <var>transformAlgorithm</var> given <var>chunk</var> be these steps:
+ <ol>
+ <li><p>If the ongoing fetch is <a for=fetch>terminated</a>, then abort these steps.
+
+ <li><p>If <var>chunk</var> is not a {{Uint8Array}} object, then
+ <a lt=terminated for=fetch>terminate</a> the ongoing fetch.
+
+ <li>Otherwise, <a for=ReadableStream>enqueue</a> <var>chunk</var>. The user agent may split
+ the chunk in <a>implementation-defined</a> practical size and
+ <a for=ReadableStream>enqueues</a> each of them.
+ </ol>
+
+ <li> Let <var>transformStream</var> be result of <a for=TransformStream>setting up</a> a
+ {{TransformStream}} with <var>transformAlgorithm</var>.
+
+ <li> Perform <a href=https://streams.spec.whatwg.org/#readable-stream-pipe-to>ReadableStreamPipeTo</a>(
Applied the link.
--
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/1199#discussion_r607443730
Received on Tuesday, 6 April 2021 02:28:00 UTC