Response object for HTTP Upgrade/CONNECT #3036
stephank wants to merge 3 commits into nodejs:masterfrom stephank:upgrade-response
Commits on Aug 6, 2013
Introduces `switchProtocols()` on the response, which is an alternate `end()` for responses that hijack the socket. The common part for building a ServerResponse, shared with regular requests, is extracted to a `createResponse()` function.