Class: HTTPX::Plugins::Proxy::HTTP::ConnectRequest
- Defined in:
- lib/httpx/plugins/proxy/http.rb
Constant Summary
Constants inherited from Request
Instance Attribute Summary
Attributes inherited from Request
#body, #drain_error, #headers, #options, #peer_address, #persistent, #response, #state, #uri, #verb
Instance Method Summary collapse
-
#initialize(uri, options) ⇒ ConnectRequest
constructor
A new instance of ConnectRequest.
- #path ⇒ Object
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, ) super("CONNECT", uri, ) @headers.delete("accept") end |
Instance Method Details
#path ⇒ Object
174 175 176 |
# File 'lib/httpx/plugins/proxy/http.rb', line 174 def path "#{@uri.hostname}:#{@uri.port}" end |