Module: HTTPX::Plugins::Proxy::Socks5::ConnectionMethods

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

Instance Method Summary collapse

Instance Method Details

#callObject



21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/httpx/plugins/proxy/socks5.rb', line 21

def call
  super

  return unless @options.proxy && @options.proxy.uri.scheme == "socks5"

  case @state
  when :connecting,
       :negotiating,
       :authenticating
    consume
  end
end

#connecting?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/httpx/plugins/proxy/socks5.rb', line 34

def connecting?
  super || @state == :authenticating || @state == :negotiating
end