Method: ActionDispatch::RequestId#call
- Defined in:
- actionpack/lib/action_dispatch/middleware/request_id.rb
#call(env) ⇒ Object
30 31 32 33 34 |
# File 'actionpack/lib/action_dispatch/middleware/request_id.rb', line 30 def call(env) req = ActionDispatch::Request.new env req.request_id = make_request_id(req.headers[@header]) @app.call(env).tap { |_status, headers, _body| headers[@header] = req.request_id } end |