title: How to monitor outgoing HTTP requests in Node.js?
body: <p>I'm building a small developer tool (HUD) for an app written in node. In the tool, I want to surface all HTTP/HTTPS requests that were made in order to serve that page (to display them to the developer and record their number). Is there a clean way to do so, which does not involve wrapping something like <code>http.request()</code>? If not, what is the lowest level method that would need to be wrapped in order to log both HTTP &amp; HTTPS? How about for TCP connections?</p>