From 5beec3f106b0890cc76150d0e3b3661c576d4c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 19 Aug 2022 14:36:01 +0200 Subject: feat(unstable): change Deno.serve() API (#15498) - Merge "Deno.serve()" and "Deno.serveTls()" API - Remove first argument and use "fetch" field options instead - Update type declarations - Add more documentation --- cli/bench/http/deno_flash_hono_router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/bench/http/deno_flash_hono_router.js') diff --git a/cli/bench/http/deno_flash_hono_router.js b/cli/bench/http/deno_flash_hono_router.js index af6adc9ba..4c3336c63 100644 --- a/cli/bench/http/deno_flash_hono_router.js +++ b/cli/bench/http/deno_flash_hono_router.js @@ -7,4 +7,4 @@ const [hostname, port] = addr.split(":"); const app = new Hono(); app.get("/", (c) => c.text("Hello, World!")); -Deno.serve(app.fetch, { port: Number(port), hostname }); +Deno.serve({ fetch: app.fetch, port: Number(port), hostname }); -- cgit v1.2.3