module HTTPX::Plugins::Proxy::Socks4

  1. lib/httpx/plugins/proxy/socks4.rb

Methods

Public Class

  1. extra_options

Constants

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

Public Class methods

extra_options(options)
[show source]
   # File lib/httpx/plugins/proxy/socks4.rb
20 def extra_options(options)
21   options.merge(supported_proxy_protocols: options.supported_proxy_protocols + PROTOCOLS)
22 end