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

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

Instance Method Summary collapse

Instance Method Details

#coalescable?Boolean

should not coalesce connections here, as the IP is the IP of the proxy

Returns:

  • (Boolean)


85
86
87
88
89
# File 'lib/httpx/plugins/proxy/ssh.rb', line 85

def coalescable?(*)
  return super unless @options.proxy

  false
end

#match?(uri, options) ⇒ Boolean

Returns:

  • (Boolean)


78
79
80
81
82
# File 'lib/httpx/plugins/proxy/ssh.rb', line 78

def match?(uri, options)
  return super unless @options.proxy

  super && @options.proxy == options.proxy
end