Fixes the reported memory leaks when fetching media.
// Proposal for new feature Bun.serve({ async fetch(req) { const file = Bun.file("./bun.mp4"); // Optimized built-in method return new Response(await Bun.serveVideo(file, req)); }, }); Use code with caution. Copied to clipboard bun.mp4
Description * What version of Bun is running? 1.1.21+70ca2b76c. * What platform is your computer? Microsoft Windows NT 10.0.22631. Fixes the reported memory leaks when fetching media
Fixes the reported memory leaks when fetching media.
// Proposal for new feature Bun.serve({ async fetch(req) { const file = Bun.file("./bun.mp4"); // Optimized built-in method return new Response(await Bun.serveVideo(file, req)); }, }); Use code with caution. Copied to clipboard
Description * What version of Bun is running? 1.1.21+70ca2b76c. * What platform is your computer? Microsoft Windows NT 10.0.22631.