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 25 def configure(klass) 26 klass.plugin(:"proxy/http") 27 klass.plugin(:"proxy/socks4") 28 klass.plugin(:"proxy/socks5") 29 end
extra_options(options)
[show source]
# File lib/httpx/plugins/proxy.rb 31 def extra_options(options) 32 options.merge(supported_proxy_protocols: []) 33 end
subplugins()
[show source]
# File lib/httpx/plugins/proxy.rb 35 def subplugins 36 { 37 retries: ProxyRetries, 38 } 39 end