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)


81
82
83
84
85
# File 'lib/httpx/plugins/proxy/ssh.rb', line 81

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

  false
end

#match?(uri, options) ⇒ Boolean

Returns:

  • (Boolean)


74
75
76
77
78
# File 'lib/httpx/plugins/proxy/ssh.rb', line 74

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

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