Skip to content

Instantly share code, notes, and snippets.

@seregazhuk
Last active August 21, 2019 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seregazhuk/78b59e90dc2c88febdeb7690f252f7b3 to your computer and use it in GitHub Desktop.
Save seregazhuk/78b59e90dc2c88febdeb7690f252f7b3 to your computer and use it in GitHub Desktop.
const http = require('http');
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello world');
});
server.listen('8000', '127.0.0.1');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment