component/package.js — pull request #7 by marcmenn (2014-01-13 19:07:23+00:00)
Title: Add proxy BEFORE opening socket

setting a request header creates the actual request object (calls Request.request()) which - for https urls - creates a new http.ClientRequest with options.createConnection to be called in ClientRequest constructor and which initiates connect on the socket. So -> proxy should be called first