* [rack-contrib] Rack::Runtime Middleware
@ 2009-07-24 21:30 Paul
0 siblings, 0 replies; only message in thread
From: Paul @ 2009-07-24 21:30 UTC (permalink / raw)
To: Rack Development
I've written some middleware for rack-contrib that add an "X-Runtime"
header with the runtime of the application. Can also set it more than
once, with different suffixes, like this:
use Rack::Runtime, "All"
# use more middlewares here
use Rack::Runtime, "App"
run Application
will set "X-Runtime-All" and "X-Runtime-App" headers on the response.
I sent a pull request to "rack", but I'm not sure who else has commit
rights to the repo.
Here's the branch:
http://github.com/paul/rack-contrib/tree/runtime
Thanks,
Paul
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-25 1:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-24 21:30 [rack-contrib] Rack::Runtime Middleware Paul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).