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