content-length
Express/Connect middleware to calculate the response payload size
Install
npm install content-length --save
Usage
var express = ;var contentLength = ; app; app;
API
contentLength(callback)
callback
- a callback function called when response has ended. Typical Nodejs callback stylecallback(err, len)
.
Run Tests
npm install
npm test