diff options
Diffstat (limited to 'cli/bench/http/deno_http_flash.js')
-rw-r--r-- | cli/bench/http/deno_http_flash.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/bench/http/deno_http_flash.js b/cli/bench/http/deno_http_flash.js index 5d3de68f4..3823bb9cd 100644 --- a/cli/bench/http/deno_http_flash.js +++ b/cli/bench/http/deno_http_flash.js @@ -4,11 +4,12 @@ const addr = Deno.args[0] || "127.0.0.1:4500"; const [hostname, port] = addr.split(":"); const { serve } = Deno; -function handler() { +function fetch() { return new Response("Hello World"); } -serve(handler, { +serve({ + fetch, hostname, port, }); |