Sha256: 19b43c063dbd9deb9d87b2e6638efb8ccf2b52e47b10512ef5d2cd8a27cea225
Contents?: true
Size: 436 Bytes
Versions: 34
Compression:
Stored size: 436 Bytes
Contents
require 'rack/insight/database' module Rack::Insight class RequestRecorder def initialize(app) @app = app @request_table = Database::RequestTable.new() end def call(env) env["rack-insight.request-id"] = @request_table.store(env["REQUEST_METHOD"], env["PATH_INFO"]) results = @app.call(env) @request_table.sweep return results end end end
Version data entries
34 entries across 34 versions & 1 rubygems