- From: Luca Casonato <notifications@github.com>
- Date: Wed, 01 Feb 2023 09:10:19 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/1600@github.com>
This commit adds an option bag to `Body/arrayBuffer`, `Body/blob`, `Body/formData`, `Body/json`, and `Body/text` that allows configuration of a max byte length for the underlying consumed body. This allows a developer to limit how much data their application parses without having to resort to a costly user-land TransformStream that may break internal optimizations of the body consume helpers. --- - [ ] At least two implementers are interested (and none opposed): * Deno * Cloudflare Workers - [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at: * … - [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed: * Chromium: … * Gecko: … * WebKit: … * Deno: … - [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: … (See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.) You can view, comment on, or merge this pull request online at: https://github.com/whatwg/fetch/pull/1600 -- Commit Summary -- * Add maxByteLength option to Body consume utilities -- File Changes -- M fetch.bs (75) -- Patch Links -- https://github.com/whatwg/fetch/pull/1600.patch https://github.com/whatwg/fetch/pull/1600.diff -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/1600 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/pull/1600@github.com>
Received on Wednesday, 1 February 2023 17:10:31 UTC