You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
284 B

var express = require('./');
var app = express();
express.request.toJSON = function(){
return {
method: this.method,
url: this.url,
header: this.headers
}
};
app.get('*', function(req, res){
console.log(JSON.stringify(req));
res.send(200);
});
app.listen(4000)