Method: Net::SSH::Proxy::HTTP#initialize
- Defined in:
- lib/net/ssh/proxy/http.rb
#initialize(proxy_host, proxy_port = 80, options = {}) ⇒ HTTP
Create a new socket factory that tunnels via the given host and port. The options
parameter is a hash of additional settings that can be used to tweak this proxy connection. Specifically, the following options are supported:
-
:user => the user name to use when authenticating to the proxy
-
:password => the password to use when authenticating
44 45 46 47 48 |
# File 'lib/net/ssh/proxy/http.rb', line 44 def initialize(proxy_host, proxy_port=80, ={}) @proxy_host = proxy_host @proxy_port = proxy_port @options = end |