Public Instance methods
call()
[show source]
# File lib/httpx/plugins/proxy/socks5.rb 32 def call 33 super 34 35 return unless @options.proxy && @options.proxy.uri.scheme == "socks5" 36 37 case @state 38 when :connecting, 39 :negotiating, 40 :authenticating 41 consume 42 end 43 end
connecting?()
[show source]
# File lib/httpx/plugins/proxy/socks5.rb 45 def connecting? 46 super || @state == :authenticating || @state == :negotiating 47 end
interests()
[show source]
# File lib/httpx/plugins/proxy/socks5.rb 49 def interests 50 if @state == :connecting || @state == :authenticating || @state == :negotiating 51 return @write_buffer.empty? ? :r : :w 52 end 53 54 super 55 end