class

ConnectProxy

Inherits Reference / Object

Based on https://github.com/net-ssh/net-ssh/blob/master/lib/net/ssh/proxy/http.rb

Constructors

new(host, port : Int32, auth : NamedTuple(username: String, password: String) | Nil = nil)

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
Source

Class methods

behind_proxy?

Simple check for relevant environment

Source
disable_crl_checks
Source
disable_crl_checks=(disable_crl_checks : Bool)
Source
parse_proxy_url

Grab the host, port

Source
password
Source
password=(password : String | Nil)
Source
proxy_uri
Source
proxy_uri=(proxy_uri : String | Nil)
Source
username
Source
username=(username : String | Nil)
Source
verify_tls
Source
verify_tls=(verify_tls : Bool)
Source

Instance methods

open(host, port, tls = nil, **connection_options)

Return a new socket connected to the given host and port via the proxy that was requested when the socket factory was instantiated.

Source
proxy_host

The hostname or IP address of the HTTP proxy.

Source
proxy_port

The port number of the proxy.

Source
tls

The map of additional options that were given to the object at initialization.

Source

Nested types