Module: HTTPX::Plugins::Proxy::Socks5

Defined in:
lib/httpx/plugins/proxy/socks5.rb

Defined Under Namespace

Modules: ConnectionMethods, Packet Classes: SocksParser

Constant Summary collapse

VERSION =
5
NOAUTH =
0
PASSWD =
2
NONE =
0xff
CONNECT =
1
IPV4 =
1
DOMAIN =
3
IPV6 =
4
SUCCESS =
0
Error =
Socks5Error

Class Method Summary collapse

Class Method Details

.extra_options(options) ⇒ Object



26
27
28
# File 'lib/httpx/plugins/proxy/socks5.rb', line 26

def extra_options(options)
  options.merge(supported_proxy_protocols: options.supported_proxy_protocols + %w[socks5])
end

.load_dependenciesObject



22
23
24
# File 'lib/httpx/plugins/proxy/socks5.rb', line 22

def load_dependencies(*)
  require_relative "../auth/socks5"
end