class Rack::RequestTimestamp

Constants

VERSION

Public Class Methods

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

Public Instance Methods

call(env) click to toggle source
# File lib/rack/request_timestamp.rb, line 9
def call(env)
  env[:timestamp] = Time.now
  @app.call(env)
end