diff options
Diffstat (limited to 'cli/bench/http/node_http_read_headers.js')
-rw-r--r-- | cli/bench/http/node_http_read_headers.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/bench/http/node_http_read_headers.js b/cli/bench/http/node_http_read_headers.js new file mode 100644 index 000000000..98716c72b --- /dev/null +++ b/cli/bench/http/node_http_read_headers.js @@ -0,0 +1,10 @@ +// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. +const http = require("http"); +const port = process.argv[2] || "4544"; +console.log("port", port); +http + .Server((req, res) => { + const bar = req.headers["foo"]; + res.end(bar); + }) + .listen(port); |