Module: HTTPX::Plugins::Proxy::Socks4

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

Defined Under Namespace

Modules: ConnectionMethods, Packet Classes: SocksParser

Constant Summary collapse

VERSION =
4
CONNECT =
1
GRANTED =
0x5A
PROTOCOLS =
%w[socks4 socks4a].freeze
Error =
Socks4Error

Class Method Summary collapse

Class Method Details

.extra_options(options) ⇒ Object



20
21
22
# File 'lib/httpx/plugins/proxy/socks4.rb', line 20

def extra_options(options)
  options.merge(supported_proxy_protocols: options.supported_proxy_protocols + PROTOCOLS)
end