diachedelic/mock-res — pull request #1 by tschaub (2014-07-17 18:16:26+00:00)
Title: Support for writeHead method

This adds `res.writeHead(code, reason, headers)` support, handling both optional reason and headers. It does not support the deprecated array form for headers. The response `statusMessage` is set when the `statusCode` is set. Values come from the `http.STATUS_CODES` lookup and can be customized by providing a reason argument to `res.writeHead()`.