Module: HTTPX::Plugins::Proxy::Socks5::ConnectionMethods
- Defined in:
- lib/httpx/plugins/proxy/socks5.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 32 def call super return unless @options.proxy && @options.proxy.uri.scheme == "socks5" case @state when :connecting, :negotiating, :authenticating consume end end |
#connecting? ⇒ Boolean
45 46 47 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 45 def connecting? super || @state == :authenticating || @state == :negotiating end |
#interests ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 49 def interests if @state == :connecting || @state == :authenticating || @state == :negotiating return @write_buffer.empty? ? :r : :w end super end |