class HTTPX::Plugins::Proxy::HTTP::ConnectProxyParser

  1. lib/httpx/plugins/proxy/http.rb
Superclass: ProxyParser

Methods

Public Instance

  1. empty?
  2. headline_uri
  3. pending

Attributes

pending [R]

Public Instance methods

empty? ()
[show source]
    # File lib/httpx/plugins/proxy/http.rb
 98 def empty?
 99   @requests.reject { |r| r.verb == :connect }.empty? ||
100     @requests.all? { |request| !request.response.nil? }
101 end
headline_uri (request)
[show source]
   # File lib/httpx/plugins/proxy/http.rb
89 def headline_uri(request)
90   return super unless request.verb == :connect
91 
92   uri = request.uri
93   tunnel = "#{uri.hostname}:#{uri.port}"
94   log { "establishing HTTP proxy tunnel to #{tunnel}" }
95   tunnel
96 end