class Socksify::Proxy
- Socksify::Proxy
- Reference
- Object
Defined in:
lib/proxy.crConstructors
Class Method Summary
-
.behind_proxy?
Simple check for relevant environment
- .config : Config
- .configure(&)
- .disable_crl_checks : Bool
- .disable_crl_checks=(disable_crl_checks : Bool)
-
.parse_proxy_url
Grab the host, port from URI
- .password : String | Nil
- .password=(password : String | Nil)
- .proxy_uri : String | Nil
- .proxy_uri=(proxy_uri : String | Nil)
- .username : String | Nil
- .username=(username : String | Nil)
- .verify_tls : Bool
- .verify_tls=(verify_tls : Bool)
Instance Method Summary
-
#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.
-
#proxy_host : String
The hostname or IP address of the HTTP proxy.
-
#proxy_port : Int32
The port number of the proxy.
-
#proxy_url : String | Nil
The fulll URL of the PROXY starting by the scheme (socks or http)
-
#tls : OpenSSL::SSL::Context::Client | Nil
The map of additional options that were given to the object at initialization.
Constructor Detail
Class Method Detail
Instance Method Detail
def 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.
def tls : OpenSSL::SSL::Context::Client | Nil
#
The map of additional options that were given to the object at initialization.