Created
January 26, 2020 16:01
-
-
Save LautaroJayat/2eb52eb4da73595c70ac36c432d7098f to your computer and use it in GitHub Desktop.
index.js - How a request object looks in NodeJS
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
// Now we put assign the names for the request and response objects that | |
// are used in the createServer(function); | |
const server = http.createServer((req, res) => { | |
// Lets see what a request object looks like. | |
console.log(req); | |
}).listen(PORT); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment