- From: Anne van Kesteren <notifications@github.com>
- Date: Tue, 07 Dec 2021 04:22:49 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/1311/review/825200422@github.com>
@annevk commented on this pull request. > + </li> + + <li><p>If <var>response</var>'s <a for=response>body</a> is null, then run + <var>processResponseDone</var>. + + <li> + <p>Otherwise:</p> + + <ol> + <li><p>Let <var>transformStream</var> be a new a {{TransformStream}}. + + <li><p>Let <var>identityTransformAlgorithm</var> be an algorithm which, given <var>chunk</var>, + <a for=TransformStream lt=enqueue>enqueues</a> <var>chunk</var> in <var>transformStream</var>. + + <li><p><a for=TransformStream lt="setting up">Set up</a> <var>transformStream</var> with + [=TransformStream/set up/transformalgorithm=] set to <var>identityTransformAlgorithm</var> and These parameter names also need to be wrapped in `<i>`. And for consistency let's continue to use `<a>` here. > + <li><p>Let <var>transformStream</var> be a new a {{TransformStream}}. + + <li><p>Let <var>identityTransformAlgorithm</var> be an algorithm which, given <var>chunk</var>, + <a for=TransformStream lt=enqueue>enqueues</a> <var>chunk</var> in <var>transformStream</var>. + + <li><p><a for=TransformStream lt="setting up">Set up</a> <var>transformStream</var> with + [=TransformStream/set up/transformalgorithm=] set to <var>identityTransformAlgorithm</var> and + [=TransformStream/set up/flushalgorithm=] set to <var>processResponseDone</var>. + + <li><p>Set <var>response</var>'s <a for=response>body</a> to the result of + <a for=ReadableStream lt="piping through">piping</a> <var>response</var>'s + <a for=response>body</a> through <var>transformStream</var>. + </ol> + + <p class=note>This {{TransformStream}} is needed for the purpose of receiving a notification when + the stream reaches its end, and is otherwise an [=identity transform stream=]. Nit: can we use `<a>` here as well? I'd rather not introduce new syntax here in only a few new places until we decided more generally to go for 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/1311#pullrequestreview-825200422
Received on Tuesday, 7 December 2021 12:23:02 UTC