Sha256: cc5c5bdf63b9f9653b4eed415deab362d212faa74351fd2514d8f6556f3c1bdf
Contents?: true
Size: 470 Bytes
Versions: 16
Compression:
Stored size: 470 Bytes
Contents
# frozen_string_literal: true module Kiev module Rack class StoreRequestDetails def initialize(app) @app = app end 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 end end end
Version data entries
16 entries across 16 versions & 1 rubygems