Module: HTTPX::Plugins::Proxy::HTTP::ConnectionMethods
- Defined in:
- lib/httpx/plugins/proxy/http.rb
Instance Method Summary collapse
Instance Method Details
#connecting? ⇒ Boolean
46 47 48 |
# File 'lib/httpx/plugins/proxy/http.rb', line 46 def connecting? super || @state == :connecting || @state == :connected end |
#force_close ⇒ Object
50 51 52 53 54 55 56 57 58 59 |
# File 'lib/httpx/plugins/proxy/http.rb', line 50 def force_close(*) if @state == :connecting # proxy connect related requests should not be reenqueed @parser.reset! @inflight -= @parser.pending.size @parser.pending.clear end super end |