Class: HTTPX::Plugins::Proxy::Socks5::Socks5ProxyChannel

Inherits:
HTTPX::ProxyChannel show all
Defined in:
lib/httpx/plugins/proxy/socks5.rb

Constant Summary

Constants inherited from Channel

Channel::BUFFER_SIZE

Constants included from Loggable

Loggable::COLORS

Constants included from Registry

Registry::Error

Instance Attribute Summary

Attributes inherited from Channel

#pending, #state, #uri

Instance Method Summary collapse

Methods inherited from HTTPX::ProxyChannel

#connecting?, #initialize, #match?, #reset, #send, #to_io

Methods inherited from Channel

#addresses=, by, #close, #coalescable?, #connecting?, #handle_timeout_error, #initialize, #interests, #match?, #match_altsvcs?, #merge, #mergeable?, #purge_pending, #reset, #send, #to_io, #unmerge, #upgrade_parser

Methods included from Callbacks

#emit, #on, #once

Methods included from Loggable

#log

Methods included from Registry

extended, included

Constructor Details

This class inherits a constructor from HTTPX::ProxyChannel

Instance Method Details

#callObject



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

def call
  super
  case @state
  when :connecting,
       :negotiating,
       :authenticating
    consume
  end
end