Created
April 22, 2020 06:45
-
-
Save HussainArif12/0906ff8ef80dd77d0018833590595326 to your computer and use it in GitHub Desktop.
This file contains 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 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