Public Class methods
new(*)
[show source]
# File lib/httpx/plugins/proxy/http.rb 87 def initialize(*) 88 @tunnel_parser = nil 89 super 90 end
Public Instance methods
handle_connect_error(*)
[show source]
# File lib/httpx/plugins/proxy/http.rb 92 def handle_connect_error(*) 93 if @state == :connecting 94 # proxy connect related requests should not be reenqueed 95 @parser.reset 96 @inflight -= @parser.pending.size 97 check_inflight_is_negative 98 @parser.pending.clear 99 end 100 101 super 102 end
on_error(error, *)
[show source]
# File lib/httpx/plugins/proxy/http.rb 104 def on_error(error, *) 105 error = error.to_connection_error if error.is_a?(RequestTimeoutError) && connecting? 106 107 super 108 end