Module: HTTPX::Plugins::Proxy::SSH

Defined in:
lib/httpx/plugins/proxy/ssh.rb

Defined Under Namespace

Modules: ConnectionMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.extra_options(options) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/httpx/plugins/proxy/ssh.rb', line 13

def self.extra_options(options)
  Class.new(options.class) do
    def_option(:proxy) do |pr|
      Hash[pr]
    end
  end.new(options)
end

.load_dependenciesObject



9
10
11
# File 'lib/httpx/plugins/proxy/ssh.rb', line 9

def self.load_dependencies(*)
  require "net/ssh/gateway"
end