class Rack::RewindableInput::Middleware

Makes rack.input rewindable, for compatibility with applications and middleware designed for earlier versions of Rack (where rack.input was required to be rewindable).

Public Class Methods

new(app) click to toggle source
# File lib/rack/rewindable_input.rb, line 18
def initialize(app)
  @app = app
end

Public Instance Methods

call(env) click to toggle source
# File lib/rack/rewindable_input.rb, line 22
def call(env)
  env[RACK_INPUT] = RewindableInput.new(env[RACK_INPUT])
  @app.call(env)
end