response-summary

Summarize an [express](https://github.com/visionmedia/express) response.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
response-summary
1.0.09 years ago9 years agoMinified + gzip package size for response-summary in KB

Readme

response-summary
Summarize an express response.

Example

var summary = require('response-summary');

var app = express();
app.get(function (req, res, next) {
  var response = summary(req, res);
  console.log('bytes sent: ' + response.size);
  next();
});

API

summary(req, res)

Return an object summarizing a response.

License

WWWWWW||WWWWWW
 W W W||W W W
      ||
    ( OO )__________
     /  |           \
    /o o|    MIT     \
    \___/||_||__||_|| *
         || ||  || ||
        _||_|| _||_||
       (__|__|(__|__|