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

Defined in:
lib/httpx/plugins/proxy/socks4.rb,
sig/plugins/proxy/socks4.rbs

Defined Under Namespace

Modules: ConnectionMethods, Packet Classes: SocksParser

Constant Summary collapse

VERSION =

Returns:

  • (Integer)
4
CONNECT =

Returns:

  • (Integer)
1
GRANTED =

Returns:

  • (Integer)
0x5A
PROTOCOLS =

Returns:

  • (Array[String])
%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