This plugin adds support for proxies. It ships with support for:
Classes and Modules
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