Files
scriptc/tests
Chris Tate 1940e06304 Cancel streamed bodies on disconnect and type Response.json headers
A response whose client disconnects while its body streams now cancels the
body's stream when the response closes, as the package does, so the
producer stops instead of being read until it ends. A response that fails
closes too and is cancelled the same way.

Response.json(data, { headers }) with init headers is written from its
Headers, as the package's Response.json passes them on as a Headers object
with the JSON content type added when they lack one. Before, the cached
path wrote only the init record and sent no Content-Type.

The hono-node-server case covers both: Response.json with and without an
init content type, and a client that destroys the response after the first
chunk of an endless stream.
2026-10-22 19:32:49 -07:00
..
2026-10-22 21:24:30 -05:00
…
2026-10-22 21:24:30 -05:00
2026-10-20 17:56:44 -05:00