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

  1. var express = require('./');
  2. var app = express();
  3. express.request.toJSON = function(){
  4. return {
  5. method: this.method,
  6. url: this.url,
  7. header: this.headers
  8. }
  9. };
  10. app.get('*', function(req, res){
  11. console.log(JSON.stringify(req));
  12. res.send(200);
  13. });
  14. app.listen(4000)