bulb/network~ TorHttpAgent

new TorHttpAgent(context)

HTTP request agent for proxing requests through Tor.

Parameters:
NameTypeDescription
contextmodule:bulb/context~TorContext

Tor context to proxy through.

Methods

createConnection(options, connectListeneropt)

Implements http.Agent#createConnection to use a module:bulb/network~HiddenSocket. You probably won't use this directly, instead passing this instance to http#request.

Parameters:
NameTypeAttributesDescription
optionsmodule:bulb/network~HiddenSocket~ConnectOptions
connectListenerfunction<optional>