mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-26 06:34:20 +08:00
Response.clone() and Request.clone() on checked-dynamic handles answered 'res.clone is not a function' (hono's etag middleware hashes res.clone().body). The runtime now implements the streams spec's ReadableStreamDefaultTee over native streams and clones the body with it, so the original and the clone each read every chunk. A used or locked body throws undici's TypeErrors, the clone's headers are a copy with the same guard, and a cloned Request's signal follows the original's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>