source: Dev/trunk/src/node_modules/express/test.js @ 484

Last change on this file since 484 was 484, checked in by hendrikvanantwerpen, 11 years ago

Commit node_modules, to make checkouts and builds more deterministic.

File size: 284 bytes
Line 
1var express = require('./');
2var app = express();
3
4express.request.toJSON = function(){
5  return {
6    method: this.method,
7    url: this.url,
8    header: this.headers
9  }
10};
11
12app.get('*', function(req, res){
13  console.log(JSON.stringify(req));
14  res.send(200);
15});
16
17app.listen(4000)
Note: See TracBrowser for help on using the repository browser.