[Feature request] The `Request.signal` API (https://developer.mozilla.org/en-US/docs/Web/API/Request

[Feature request] The Request.signal API (https://developer.mozilla.org/en-US/docs/Web/API/Request/signal) would be a convenient API to utilise for signalling when the client has disconnected. Currently we have no what of detecting when the request has been cancelled. Particularly important for SSE/streaming scenarios.
Another potential API (new) could be something like ctx.addEventListener('end', () => {}).
Was this page helpful?