Re: [whatwg/fetch] Convenience method to stream a response as text (Issue #1861)

foolip left a comment (whatwg/fetch#1861)

https://github.com/whatwg/fetch/pull/1862 is what it might look like. It amounts to this JS:

```js
Response.prototype.textStream = function() {
  if (!this.body) {
    throw new TypeError("body is null");
  }
  return this.body.pipeThrough(new TextDecoderStream());
};
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1861#issuecomment-3360921493
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1861/3360921493@github.com>

Received on Thursday, 2 October 2025 12:16:08 UTC