instance method
call
Ruby on Rails 3.2.22.5
Since v3.2.22.5Signature
call(env)
No documentation comment.
Parameters
-
envreq
Source
# File actionpack/lib/action_dispatch/middleware/request_id.rb, line 20
def call(env)
env["action_dispatch.request_id"] = external_request_id(env) || internal_request_id
status, headers, body = @app.call(env)
headers["X-Request-Id"] = env["action_dispatch.request_id"]
[ status, headers, body ]
end
Defined in actionpack/lib/action_dispatch/middleware/request_id.rb line 20
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::RequestId