Module: HTTPX::Plugins::Proxy

Defined in:
lib/httpx/plugins/proxy.rb,
lib/httpx/plugins/proxy/ssh.rb,
lib/httpx/plugins/proxy/http.rb,
lib/httpx/plugins/proxy/socks4.rb,
lib/httpx/plugins/proxy/socks5.rb

Overview

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

Defined Under Namespace

Modules: ConnectionMethods, HTTP, InstanceMethods, OptionsMethods, SSH, Socks4, Socks5 Classes: Parameters

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

.configure(klass) ⇒ Object



22
23
24
25
26
# File 'lib/httpx/plugins/proxy.rb', line 22

def configure(klass)
  klass.plugin(:"proxy/http")
  klass.plugin(:"proxy/socks4")
  klass.plugin(:"proxy/socks5")
end

.extra_options(options) ⇒ Object



28
29
30
# File 'lib/httpx/plugins/proxy.rb', line 28

def extra_options(options)
  options.merge(supported_proxy_protocols: [])
end