http-debug
npm install http-debug
Usage:
var http = http;// var https = require('http-debug').https;httpdebug = 2;/***** debug states* - 0 : off (default state)* - 1 : on (show request, write, end)* - 2 : verbose (on + error and socket event reporting)** Also support `process.env.HTTP_DEBUG` at load time, which* will overide default state, however, anything passed via* `http.debug` at run time will cancel out* `process.env.HTTP_DEBUG`.****/// Make http requests as usual.http;
Sample Output:
# on stderrHTTP REQUEST:
Development
Please contribute. I built this quickly for my own needs.
git clone https://github.com/jmervine/node-http-debug.gitcd node-http-debugnpm installnpm test
No pull requests will be accepted unless tests are (added if need be and) passing.
Change Log
0.1.1
- Support for
process.env.HTTP_DEBUG
. https
test.
0.1.0
- Initial release.