jakedallinson
6/11/2019 - 6:54 PM

HTTP Server

Receive requests in Node.js

var http = require('http');

var server = http.createServer(function(req, res) {
  console.log('got a request');
  response.write('hi');
  response.end();
});

server.listen(3000);