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