lib/httpx/plugins/proxy.rb in httpx-0.4.0 vs lib/httpx/plugins/proxy.rb in httpx-0.4.1

- old
+ new

@@ -12,10 +12,12 @@ # * HTTP proxies # * HTTPS proxies # * Socks4/4a proxies # * Socks5 proxies # + # https://gitlab.com/honeyryderchuck/httpx/wikis/Proxy + # module Proxy Error = Class.new(Error) PROXY_ERRORS = [TimeoutError, IOError, SystemCallError, Error].freeze class Parameters @@ -45,10 +47,10 @@ end end end class << self - def configure(klass, *) + def configure(klass) klass.plugin(:"proxy/http") klass.plugin(:"proxy/socks4") klass.plugin(:"proxy/socks5") end