Class: HTTPX::Plugins::Proxy::HTTP::ConnectRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/httpx/plugins/proxy/http.rb

Constant Summary

Constants inherited from Request

Request::USER_AGENT

Instance Attribute Summary

Attributes inherited from Request

#body, #drain_error, #headers, #options, #peer_address, #persistent, #response, #state, #uri, #verb

Instance Method Summary collapse

Methods inherited from Request

#authority, #drain_body, #expects?, #inspect, #interests, #merge_headers, #origin, #persistent?, #query, #read_timeout, #request_timeout, #scheme, #trailers, #trailers?, #transition, #write_timeout

Methods included from Callbacks

#callbacks_for?, #emit, #on, #once

Constructor Details

#initialize(uri, options) ⇒ ConnectRequest

Returns a new instance of ConnectRequest.



169
170
171
172
# File 'lib/httpx/plugins/proxy/http.rb', line 169

def initialize(uri, options)
  super("CONNECT", uri, options)
  @headers.delete("accept")
end

Instance Method Details

#pathObject



174
175
176
# File 'lib/httpx/plugins/proxy/http.rb', line 174

def path
  "#{@uri.hostname}:#{@uri.port}"
end