import { serve } from "bun"; serve({ async fetch(req) { // body is a ReadableStream const body = req.body; const writer = Bun.file(`upload.${Date.now()}.txt`).writer(); for await (const chunk of body!) { writer.write(chunk); } const wrote = await writer.end(); // @ts-ignore return Response.json({ wrote, type: req.headers.get("Content-Type") }); }, }); alt='cgit logo'/> index : bun
Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/test/js/node/child_process/fixtures (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-10-13fix lockfile struct padding (#6495)Gravatar Dylan Conway 3-3/+18