blob: 745cf34b8d5a8a5df22bf08dd5e519348dced3c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const port = Bun.argv[2] || "4545";
const path = new URL("../testdata/128k.bin", import.meta.url).pathname;
Bun.serve({
fetch(_req) {
const file = Bun.file(path);
return new Response(file, {
headers: { "Date": (new Date()).toUTCString() },
});
},
port: Number(port),
});
|