class Shaf::Middleware::RequestId
Public Class Methods
new(app)
click to toggle source
# File lib/shaf/middleware/request_id.rb, line 8 def initialize(app) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/shaf/middleware/request_id.rb, line 12 def call(env) env['REQUEST_ID'] = SecureRandom.uuid @app.call(env) end