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