module HTTPX::Plugins::Proxy

  1. lib/httpx/plugins/proxy.rb
  2. lib/httpx/plugins/proxy/http.rb
  3. lib/httpx/plugins/proxy/socks4.rb
  4. lib/httpx/plugins/proxy/socks5.rb
  5. lib/httpx/plugins/proxy/ssh.rb
  6. show all

This plugin adds support for proxies. It ships with support for:

  • HTTP proxies

  • HTTPS proxies

  • Socks4/4a proxies

  • Socks5 proxies

gitlab.com/os85/httpx/wikis/Proxy

Methods

Public Class

  1. configure
  2. extra_options

Constants

Error = HTTPProxyError  
PROXY_ERRORS = [TimeoutError, IOError, SystemCallError, Error].freeze  

Public Class methods

configure(klass)
[show source]
   # File lib/httpx/plugins/proxy.rb
22 def configure(klass)
23   klass.plugin(:"proxy/http")
24   klass.plugin(:"proxy/socks4")
25   klass.plugin(:"proxy/socks5")
26 end
extra_options(options)
[show source]
   # File lib/httpx/plugins/proxy.rb
28 def extra_options(options)
29   options.merge(supported_proxy_protocols: [])
30 end