Answers for "the http module node"

0

http module nodejs

var http = require('http');

//create a server object:
http.createServer(function (req, res) {
  res.write('Hello World!'); //write a response to the client
  res.end(); //end the response
}).listen(8080); //the server object listens on port 8080
Posted by: Guest on July-21-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language