summaryrefslogtreecommitdiff
path: root/cli/bench/http/node_http_read_headers.js
blob: 98716c72b33b00bae818193d7d99eb6c71148f15 (plain)
1
2
3
4
5
6
7
8
9
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);