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/honeyryderchuck/httpx/wikis/Proxy

Methods

Public Class

  1. configure
  2. extra_options

Constants

Error = Class.new(Error)  
PROXY_ERRORS = [TimeoutError, IOError, SystemCallError, Error].freeze  

Public Class methods

configure (klass)
[show source]
   # File lib/httpx/plugins/proxy.rb
52 def configure(klass)
53   klass.plugin(:"proxy/http")
54   klass.plugin(:"proxy/socks4")
55   klass.plugin(:"proxy/socks5")
56 end
extra_options (options)
[show source]
   # File lib/httpx/plugins/proxy.rb
58 def extra_options(options)
59   Class.new(options.class) do
60     def_option(:proxy) do |pr|
61       Hash[pr]
62     end
63   end.new(options)
64 end