Skip to content

Instantly share code, notes, and snippets.

@LautaroJayat
Created January 26, 2020 16:01
Show Gist options
  • Save LautaroJayat/2eb52eb4da73595c70ac36c432d7098f to your computer and use it in GitHub Desktop.
Save LautaroJayat/2eb52eb4da73595c70ac36c432d7098f to your computer and use it in GitHub Desktop.
index.js - How a request object looks in NodeJS
// 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