summaryrefslogtreecommitdiff
path: root/cli/bench/http/bun_hono_router.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/bench/http/bun_hono_router.js')
-rw-r--r--cli/bench/http/bun_hono_router.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/bench/http/bun_hono_router.js b/cli/bench/http/bun_hono_router.js
index a0bba67d5..38f9c3542 100644
--- a/cli/bench/http/bun_hono_router.js
+++ b/cli/bench/http/bun_hono_router.js
@@ -3,6 +3,10 @@ const port = Bun.argv[2] || "4545";
const { Hono } = require("../testdata/npm/hono/dist/index.js");
const app = new Hono();
+app.use("*", async (c, n) => {
+ c.res.headers.set("Date", (new Date()).toUTCString());
+ await n();
+});
app.get("/", (c) => c.text("Hello, World!"));
Bun.serve({