Readonly
connectionThe last connection in connectionsStack
Readonly
connectionsThe connections stack
Readonly
destinationThe destination hostname that will be used in forward
mode.
By default, it is equal to hostname.
Can be changed with setDestination.
Readonly
destinationThe destination port that will be used in forward
mode.
By default, it is equal to port.
Can be changed with setDestination.
Readonly
hostnameThe target hostname in the CONNECT request
Readonly
modeThe currently selected mode, configured either by a call to setMode or by the global setting
Readonly
portThe target port in the CONNECT request
Readonly
requestThe original Node.js object representing the request
Readonly
socketThe 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