diff options
Diffstat (limited to 'cli/bench/http')
-rw-r--r-- | cli/bench/http/deno_flash_send_file.js | 2 | ||||
-rw-r--r-- | cli/bench/http/deno_http_serve.js | 2 | ||||
-rw-r--r-- | cli/bench/http/deno_http_serve_https.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cli/bench/http/deno_flash_send_file.js b/cli/bench/http/deno_flash_send_file.js index b613a6164..979b80bf4 100644 --- a/cli/bench/http/deno_flash_send_file.js +++ b/cli/bench/http/deno_flash_send_file.js @@ -11,4 +11,4 @@ function handler() { return new Response(file.readable); } -serve(handler, { hostname, port: Number(port) }); +serve({ hostname, port: Number(port) }, handler); diff --git a/cli/bench/http/deno_http_serve.js b/cli/bench/http/deno_http_serve.js index a0db62630..989dc82e8 100644 --- a/cli/bench/http/deno_http_serve.js +++ b/cli/bench/http/deno_http_serve.js @@ -8,4 +8,4 @@ function handler() { return new Response("Hello World"); } -serve(handler, { hostname, port, reusePort: true }); +serve({ hostname, port, reusePort: true }, handler); diff --git a/cli/bench/http/deno_http_serve_https.js b/cli/bench/http/deno_http_serve_https.js index cea659e09..17b403394 100644 --- a/cli/bench/http/deno_http_serve_https.js +++ b/cli/bench/http/deno_http_serve_https.js @@ -15,4 +15,4 @@ function handler() { return new Response("Hello World"); } -serve(handler, { hostname, port, reusePort: true, cert: CERT, key: KEY }); +serve({ hostname, port, reusePort: true, cert: CERT, key: KEY }, handler); |