adds support for the following options:
:proxy |
proxy options defining :uri, :username, :password or :scheme (i.e. |
Public Instance methods
option_proxy(value)
[show source]
# File lib/httpx/plugins/proxy.rb 97 def option_proxy(value) 98 value.is_a?(Parameters) ? value : Hash[value] 99 end
option_supported_proxy_protocols(value)
[show source]
# File lib/httpx/plugins/proxy.rb 101 def option_supported_proxy_protocols(value) 102 raise TypeError, ":supported_proxy_protocols must be an Array" unless value.is_a?(Array) 103 104 value.map(&:to_s) 105 end