ReadonlyconnectionThe last connection in connectionsStack
ReadonlyconnectionsThe connections stack
ReadonlydestinationThe destination hostname that will be used in forward mode.
By default, it is equal to hostname.
Can be changed with setDestination.
ReadonlydestinationThe destination port that will be used in forward mode.
By default, it is equal to port.
Can be changed with setDestination.
ReadonlyhostnameThe target hostname in the CONNECT request
ReadonlymodeThe currently selected mode, configured either by a call to setMode or by the global setting
ReadonlyportThe target port in the CONNECT request
ReadonlyrequestThe original Node.js object representing the request
ReadonlysocketThe underlying socket
Processes the socket according to the mode stored in mode. This method is called automatically when the onProxyConnect function finishes, but it can also be called manually before.
mode to set
A handier wrapper around a CONNECT request