diff options
author | Jon Moss <maclover7@users.noreply.github.com> | 2016-10-03 18:01:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-03 18:01:31 -0400 |
commit | c3005e0a31eaef3b169ff4460e22dd263a8006cf (patch) | |
tree | d26298d62327e303c4e7d9816e04a5a7650080b6 /actionpack | |
parent | 39fb3069f8eee6f72a4288dd71e3c4a1ec6d7f8a (diff) | |
parent | 9a130ee465fd8bd933d62a766ac1abcbb818b0be (diff) | |
download | rails-c3005e0a31eaef3b169ff4460e22dd263a8006cf.tar.gz rails-c3005e0a31eaef3b169ff4460e22dd263a8006cf.tar.bz2 rails-c3005e0a31eaef3b169ff4460e22dd263a8006cf.zip |
Merge pull request #26699 from Neodelf/request_id
[ci-skip] Swap method and its alias, format doc
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/request_id.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/request_id.rb b/actionpack/lib/action_dispatch/middleware/request_id.rb index bd4c781267..1925ffd9dd 100644 --- a/actionpack/lib/action_dispatch/middleware/request_id.rb +++ b/actionpack/lib/action_dispatch/middleware/request_id.rb @@ -2,8 +2,9 @@ require "securerandom" require "active_support/core_ext/string/access" module ActionDispatch - # Makes a unique request id available to the action_dispatch.request_id env variable (which is then accessible through - # ActionDispatch::Request#uuid or the alias ActionDispatch::Request#request_id) and sends the same id to the client via the X-Request-Id header. + # Makes a unique request id available to the +action_dispatch.request_id+ env variable (which is then accessible + # through <tt>ActionDispatch::Request#request_id</tt> or the alias <tt>ActionDispatch::Request#uuid</tt>) and sends + # the same id to the client via the X-Request-Id header. # # The unique request id is either based on the X-Request-Id header in the request, which would typically be generated # by a firewall, load balancer, or the web server, or, if this header is not available, a random uuid. If the @@ -12,7 +13,7 @@ module ActionDispatch # The unique request id can be used to trace a request end-to-end and would typically end up being part of log files # from multiple pieces of the stack. class RequestId - X_REQUEST_ID = "X-Request-Id".freeze # :nodoc: + X_REQUEST_ID = "X-Request-Id".freeze #:nodoc: def initialize(app) @app = app |