class Socksify::Proxy

Defined in:

lib/proxy.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(proxy_url : String) #

[View source]

Class Method Detail

def self.behind_proxy? #

Simple check for relevant environment


[View source]
def self.config : Config #

[View source]
def self.configure(&) #

[View source]
def self.disable_crl_checks : Bool #

[View source]
def self.disable_crl_checks=(disable_crl_checks : Bool) #

[View source]
def self.parse_proxy_url #

Grab the host, port from URI


[View source]
def self.password : String | Nil #

[View source]
def self.password=(password : String | Nil) #

[View source]
def self.proxy_uri : String | Nil #

[View source]
def self.proxy_uri=(proxy_uri : String | Nil) #

[View source]
def self.username : String | Nil #

[View source]
def self.username=(username : String | Nil) #

[View source]
def self.verify_tls : Bool #

[View source]
def self.verify_tls=(verify_tls : Bool) #

[View source]

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.


[View source]
def proxy_host : String #

The hostname or IP address of the HTTP proxy.


[View source]
def proxy_port : Int32 #

The port number of the proxy.


[View source]
def proxy_url : String | Nil #

The fulll URL of the PROXY starting by the scheme (socks or http)


[View source]
def tls : OpenSSL::SSL::Context::Client | Nil #

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


[View source]