class Kiev::Rack::StoreRequestDetails

Public Class Methods

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

Public Instance Methods

call(env) click to toggle source
# File lib/kiev/rack/store_request_details.rb, line 10
def call(env)
  request = ::Rack::Request.new(env)
  RequestStore.store[:web] = true
  RequestStore.store[:request_verb] = request.request_method
  RequestStore.store[:request_path] = request.path

  Config.instance.pre_rack_hook.call(env)
  @app.call(env)
end