Last active
December 16, 2019 16:57
-
-
Save ryanlid/e732c29e457e5787dbdd1d6858080d00 to your computer and use it in GitHub Desktop.
HTTP Server by Node.js
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 app = http.createServer((req, res) => { | |
| res.writeHead(200, { 'Content-Type': "text/plain" }); | |
| res.end('Hello World\n'); | |
| }) | |
| app.listen(4000, '0.0.0.0'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment