aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2011-11-27 12:53:08 +0530
committerArun Agrawal <arunagw@gmail.com>2011-11-27 12:55:22 +0530
commit28e3935360c9392685c4954791cc320ed02e15c0 (patch)
treedf3b6cde636c989943887a4f3164f347d378ecdd /railties/guides/source
parent0ce64ba9aa93c01ee69c45493ad8090e76f95ff4 (diff)
downloadrails-28e3935360c9392685c4954791cc320ed02e15c0.tar.gz
rails-28e3935360c9392685c4954791cc320ed02e15c0.tar.bz2
rails-28e3935360c9392685c4954791cc320ed02e15c0.zip
[Docs] Adding RequestId middleware in configuring middleware
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/configuring.textile1
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile
index beb623757b..d91011c370 100644
--- a/railties/guides/source/configuring.textile
+++ b/railties/guides/source/configuring.textile
@@ -190,6 +190,7 @@ Every Rails application comes with a standard set of middleware which it uses in
* +Rack::Runtime+ sets an +X-Runtime+ header, containing the time (in seconds) taken to execute the request.
* +Rails::Rack::Logger+ notifies the logs that the request has began. After request is complete, flushes all the logs.
* +ActionDispatch::ShowExceptions+ rescues any exception returned by the application and renders nice exception pages if the request is local or if +config.consider_all_requests_local+ is set to +true+. If +config.action_dispatch.show_exceptions+ is set to +false+, exceptions will be raised regardless.
+* +ActionDispatch::RequestId+ makes a unique X-Request-Id header available to the response and enables the +ActionDispatch::Request#uuid+ method.
* +ActionDispatch::RemoteIp+ checks for IP spoofing attacks. Configurable with the +config.action_dispatch.ip_spoofing_check+ and +config.action_dispatch.trusted_proxies+ settings.
* +Rack::Sendfile+ intercepts responses whose body is being served from a file and replaces it with a server specific X-Sendfile header. Configurable with +config.action_dispatch.x_sendfile_header+.
* +ActionDispatch::Callbacks+ runs the prepare callbacks before serving the request.