- From: James M Snell <notifications@github.com>
- Date: Wed, 23 Sep 2026 06:50:49 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 23 September 2026 13:50:54 UTC
jasnell left a comment (whatwg/fetch#1592)
I'd like to see if we could get resolution on this. The problem is broader than just `formData()` (https://github.com/nodejs/undici/pull/5872). All of the accumulation methods (`text()`, `json()`, `arrayBuffer()`, `blob()`, `bytes()`, `formData()`) all have this identical problem and we do have users that hit this regularly.
Ideally, I think either a single `maxBytes` argument or an options bag with a `maxBytes` (or whatever your preferred shade for the bikeshed) would be good.
```js
await response.text(10);
// or
await response.text({ maxBytes: 10 });
```
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1592#issuecomment-5796059258
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/fetch/issues/1592/5796059258@github.com>
Received on Wednesday, 23 September 2026 13:50:54 UTC