This plugin adds support for proxies. It ships with support for:
Classes and Modules
- HTTPX::Plugins::Proxy::ConnectionMethods
- HTTPX::Plugins::Proxy::HTTP
- HTTPX::Plugins::Proxy::InstanceMethods
- HTTPX::Plugins::Proxy::OptionsMethods
- HTTPX::Plugins::Proxy::ProxyRetries
- HTTPX::Plugins::Proxy::SSH
- HTTPX::Plugins::Proxy::Socks4
- HTTPX::Plugins::Proxy::Socks5
- HTTPX::Plugins::Proxy::Parameters
- HTTPX::Plugins::Proxy::ProxyConnectionError
Constants
PROXY_ERRORS | = | [TimeoutError, IOError, SystemCallError, Error].freeze |
Public Class methods
configure(klass)
[show source]
# File lib/httpx/plugins/proxy.rb 23 def configure(klass) 24 klass.plugin(:"proxy/http") 25 klass.plugin(:"proxy/socks4") 26 klass.plugin(:"proxy/socks5") 27 end
extra_options(options)
[show source]
# File lib/httpx/plugins/proxy.rb 29 def extra_options(options) 30 options.merge(supported_proxy_protocols: []) 31 end
subplugins()
[show source]
# File lib/httpx/plugins/proxy.rb 33 def subplugins 34 { 35 retries: ProxyRetries, 36 } 37 end