Class: Rack::Reproxy::Rack
- Inherits:
-
Middleware
- Object
- Middleware
- Rack::Reproxy::Rack
- Defined in:
- lib/rack/reproxy.rb
Overview
Rack dispatches the request again and returns the proxied response with its headers merged onto the original response’s.
Instance Method Summary collapse
-
#initialize(app, options = {}) ⇒ Rack
constructor
A new instance of Rack.
Methods inherited from Middleware
Constructor Details
#initialize(app, options = {}) ⇒ Rack
Returns a new instance of Rack.
148 149 150 151 |
# File 'lib/rack/reproxy.rb', line 148 def initialize(app, = {}) super @proxy_to = .fetch(:app, self) end |