[whatwg/fetch] Fetch support for explicit resource management (Issue #1741)

### What is the issue with the Fetch Standard?

This goes along with the streams-specific related discussion here: https://github.com/whatwg/streams/issues/1307

What, if any, support should the fetch spec adopt for explicit resource management. I'm specifically thinking of the `Request` and `Response` objects here. Let's focus tho more generally on anything that includes the `Body` mixin...

Should `Body` be disposable and what would that mean?

```
using response = await fetch('http://example.org');
```

Specifically, if the body payload has not been fully read, would dispose cancel the remaining read and cause outstanding promises to be rejected? Or should `Request`/`Response`/`Body` just not be disposable?


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

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

Received on Tuesday, 27 February 2024 17:13:50 UTC