summaryrefslogtreecommitdiff
path: root/cli/bench/http/bun_http.js
blob: 5eaa328eb081cbc8b5fb011924ddb42b241b867d (plain)
1
2
3
4
5
6
7
8
9
10
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const port = Bun.argv[2] || "4545";
Bun.serve({
  fetch(_req) {
    return new Response("Hello World", {
      headers: { "Date": (new Date()).toUTCString() },
    });
  },
  port: Number(port),
});