Node.js connect handle request

Description

Node.js connect handle request


var echo = {/*from  w  ww .  ja  v a 2s .c  om*/
    handle: function(req,res,next){
        req.pipe(res);
    }
};

var connect = require('connect');

connect()
    .use(echo)
    .listen(3000);



PreviousNext

Related