Skip to content

Instantly share code, notes, and snippets.

@bennycode
Created March 7, 2020 12:55
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 bennycode/6fc637dafa70123e24d5feadcb9c3ee5 to your computer and use it in GitHub Desktop.
Save bennycode/6fc637dafa70123e24d5feadcb9c3ee5 to your computer and use it in GitHub Desktop.
Simple Server
import {createServer} from 'http';
createServer((request, response) => {
response.writeHead(200, {'Content-Type': 'text/plain'});
response.write('Hello World!');
response.end();
}).listen(8080);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment