summaryrefslogtreecommitdiff
path: root/cli/bench/http/deno_http_flash_post_bin.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/bench/http/deno_http_flash_post_bin.js')
-rw-r--r--cli/bench/http/deno_http_flash_post_bin.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/cli/bench/http/deno_http_flash_post_bin.js b/cli/bench/http/deno_http_flash_post_bin.js
deleted file mode 100644
index b81553dcd..000000000
--- a/cli/bench/http/deno_http_flash_post_bin.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-
-const addr = Deno.args[0] || "127.0.0.1:4500";
-const [hostname, port] = addr.split(":");
-const { serve } = Deno;
-
-async function handler(request) {
- try {
- const buffer = await request.arrayBuffer();
- return new Response(buffer.byteLength);
- } catch (e) {
- console.log(e);
- }
-}
-
-serve(handler, { hostname, port });