Class: Rack::Reproxy::Rack

Inherits:
Middleware show all
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

Methods inherited from Middleware

#call

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, options = {})
  super
  @proxy_to = options.fetch(:app, self)
end