Last active
May 14, 2020 13:13
-
-
Save bobvanderlinden/5c9412e7d14d2ac2dd8c3a3e525ba3e1 to your computer and use it in GitHub Desktop.
NodeJS HTTP server one-liner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node --eval 'require("http").createServer((req, res) => { res.end(); console.log(req.method, req.url, req.rawHeaders); }).listen(8080)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment