pgte/nock — pull request #3 by goldjunge (2011-10-19 18:03:47+00:00)
Title: Exposes _headers for returned request object

The object returned by `http.request` exposes its headers via the `_headers` property. You can find the corresponding code [here](https://github.com/joyent/node/blob/v0.4.12/lib/http.js#L531). To match that expectation I added a simple copy of the get/setHeader functionality from the core. The code also takes care about the implicit addition of the host header.

Maybe at some point it would make sense to flesh out the `req` Object at make it full compliant.