- From: Philip Jägenstedt <notifications@github.com>
- Date: Thu, 02 Oct 2025 05:20:43 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 2 October 2025 12:20:47 UTC
@foolip commented on this pull request. > @@ -8246,6 +8250,20 @@ of running <a for=Body>consume body</a> with <a>this</a> and <a>parse JSON from of running <a for=Body>consume body</a> with <a>this</a> and <a>UTF-8 decode</a>. </div> +<div algorithm> +<p>The <dfn method for=Body><code>textStream()</code></dfn> method steps are:</p> + +<ol> + <li><p>If <span>this</span>'s <a for=Body>body</a> is null, throw a {{TypeError}}. + + <li><p>Let <var>stream</var> be <a>this</a>'s <a for=Body>body</a>'s <a for=body>stream</a>. + + <li><p>Let <var>decoder</var> be a new {{TextDecoderStream}} object. This and the next step would need improving if there's interest in this method. The constructor steps for `TextDecoderStream` aren't implicitly run by just saying "new object", but what I'm after is an UTF-8 decoder with the default settings. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/1862#pullrequestreview-3294323155 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/pull/1862/review/3294323155@github.com>
Received on Thursday, 2 October 2025 12:20:47 UTC