class Rack::Timestamp
Constants
- VERSION
Public Class Methods
new(app)
click to toggle source
# File lib/rack/timestamp.rb, line 6 def initialize(app) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/rack/timestamp.rb, line 10 def call(env) env['rack.timestamp'] = Time.now.httpdate @app.call(env) end