Node.js connect create server

Description

Node.js connect create server


console.log('npm install connect');

var connect=require('connect');
connect.createServer(function(req, res){
  res.writeHead(200,{'Content-Type':'text/plain'});
  res.end('Hello World');
}).listen(8080);/*w w w  .j  a v a2 s  . c  o m*/



PreviousNext

Related