Created
October 8, 2021 14:58
-
-
Save OsvaldoFrias/1dd621c61b3148219a1873f7021c729a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const http = require("http"); | |
const server = http.createServer((req, res) => { | |
let data = ""; | |
req.on("data", (chunk) => { | |
data += chunk; | |
}); | |
req.on("end", () => { | |
console.log(data); | |
res.end(); | |
}); | |
}); | |
server.listen(8001); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment