npm install http-debug
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;
# on stderrHTTP REQUEST:
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.
- Support for
- Initial release.