Skip to content

Instantly share code, notes, and snippets.

@HussainArif12
Created April 22, 2020 06:45
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 HussainArif12/0906ff8ef80dd77d0018833590595326 to your computer and use it in GitHub Desktop.
Save HussainArif12/0906ff8ef80dd77d0018833590595326 to your computer and use it in GitHub Desktop.
const http = require("http");
const port = 3000
const Server = http.createServer((request, response) => {
response.writeHead(200, {
'Content-Type': 'text/html'})
response.end('Hello World \n ');
console.log(request.headers);
console.log(request.method);
console.log(request.url);
console.log(response.url);
}).listen(port);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment