diff options
author | Luca Casonato <hello@lcas.dev> | 2022-08-24 00:08:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 00:08:56 +0200 |
commit | 4ef08a58dfbcf893f25fd59917aa946f455e85f2 (patch) | |
tree | 7b1e07869fd23f1ce65029ab3725b9ef054f7576 /cli/bench/http/deno_flash_hono_router.js | |
parent | f0993f413b86997674ea4bc6812af7d2c529ec96 (diff) |
feat: update `Deno.serve` function signature (#15563)
This commit changes the `Deno.serve` function signature to be more
versatile and easier to use. It is now a drop in replacement for
std/http's `serve`.
The input validation has also been reworked.
Diffstat (limited to 'cli/bench/http/deno_flash_hono_router.js')
-rw-r--r-- | cli/bench/http/deno_flash_hono_router.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/bench/http/deno_flash_hono_router.js b/cli/bench/http/deno_flash_hono_router.js index 4c3336c63..af6adc9ba 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({ fetch: app.fetch, port: Number(port), hostname }); +Deno.serve(app.fetch, { port: Number(port), hostname }); |