Class: HTTPX::Plugins::Proxy::HTTP::ProxyParser
- Inherits:
-
Connection::HTTP1
- Object
- Connection::HTTP1
- HTTPX::Plugins::Proxy::HTTP::ProxyParser
- Defined in:
- lib/httpx/plugins/proxy/http.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Connection::HTTP1
Constants included from Loggable
Instance Method Summary collapse
Methods inherited from Connection::HTTP1
#<<, #close, #consume, #dispatch, #empty?, #handle_error, #initialize, #on_complete, #on_data, #on_headers, #on_start, #on_trailers, #reenqueue!, #reset, #send
Methods included from Loggable
Methods included from Callbacks
Constructor Details
This class inherits a constructor from HTTPX::Connection::HTTP1
Instance Method Details
#headline_uri(request) ⇒ Object
75 76 77 |
# File 'lib/httpx/plugins/proxy/http.rb', line 75 def headline_uri(request) request.uri.to_s end |
#set_request_headers(request) ⇒ Object
79 80 81 82 83 |
# File 'lib/httpx/plugins/proxy/http.rb', line 79 def set_request_headers(request) super request.headers["proxy-connection"] = request.headers["connection"] request.headers.delete("connection") end |