module HTTPX::Plugins::Proxy::OptionsMethods

  1. lib/httpx/plugins/proxy.rb

adds support for the following options:

:proxy

proxy options defining :uri, :username, :password or :scheme (i.e. { uri: "http://proxy" })

Public Instance methods

option_proxy(value)
[show source]
    # File lib/httpx/plugins/proxy.rb
138 def option_proxy(value)
139   value.is_a?(Parameters) ? value : Parameters.new(**Hash[value])
140 end
option_supported_proxy_protocols(value)
[show source]
    # File lib/httpx/plugins/proxy.rb
142 def option_supported_proxy_protocols(value)
143   raise TypeError, ":supported_proxy_protocols must be an Array" unless value.is_a?(Array)
144 
145   value.map(&:to_s)
146 end