Node.js http response 200 header

Description

Node.js http response 200 header

var http = require('http');
http.createServer(function(request,response){
  response.writeHead(200,{'content-type':'text/plain'});
  response.end("Hello Node.js!");
}).listen(8888);//from  w w w.  j ava2  s .c o m

console.log("Server is listening on port 8888!!!");



PreviousNext

Related