Bun.mp4 -
It would utilize a optimized stream pipeline to prevent memory leaks, resolving issues where large video fetches fail to release memory.
Removes the need to manually manage 206 Partial Content headers. If you can tell me: bun.mp4
To create a feature that addresses this within the Bun runtime context, I propose a new , specifically optimized to handle partial content requests, automatic range header parsing, and efficient memory management to prevent leaks, as described in Github discussions. Proposed Feature: Bun.serveVideo 1. Functionality: It would utilize a optimized stream pipeline to
Are you primarily building a or a native desktop app with Bun? Proposed Feature: Bun
Fixes the reported memory leaks when fetching media.
Memory Leak with Blob/ArrayBuffer and Bun's Garbage Collection
// 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