Class: HTTPX::Plugins::Proxy::HTTP::ProxyParser
- Inherits:
-
Channel::HTTP1
- Object
- Channel::HTTP1
- HTTPX::Plugins::Proxy::HTTP::ProxyParser
- Defined in:
- lib/httpx/plugins/proxy/http.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Channel::HTTP1
Instance Method Summary collapse
Methods inherited from Channel::HTTP1
#<<, #close, #consume, #dispatch, #empty?, #initialize, #on_body, #on_headers_complete, #on_message_begin, #on_message_complete, #on_trailer_headers_complete, #reenqueue!, #reset, #send
Methods included from Loggable
Methods included from Callbacks
Constructor Details
This class inherits a constructor from HTTPX::Channel::HTTP1
Instance Method Details
#headline_uri(request) ⇒ Object
71 72 73 |
# File 'lib/httpx/plugins/proxy/http.rb', line 71 def headline_uri(request) request.uri.to_s end |
#set_request_headers(request) ⇒ Object
75 76 77 78 79 |
# File 'lib/httpx/plugins/proxy/http.rb', line 75 def set_request_headers(request) super request.headers["proxy-connection"] = request.headers["connection"] request.headers.delete("connection") end |