rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
From: Paul <psadauskas@gmail.com>
To: Rack Development <rack-devel@googlegroups.com>
Subject: [rack-contrib] Rack::Runtime Middleware
Date: Fri, 24 Jul 2009 14:30:04 -0700 (PDT)	[thread overview]
Message-ID: <4963d66f-cbdc-4248-afe8-142bb64cf077@t11g2000prh.googlegroups.com> (raw)


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

                 reply	other threads:[~2009-07-25  1:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://groups.google.com/group/rack-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4963d66f-cbdc-4248-afe8-142bb64cf077@t11g2000prh.googlegroups.com \
    --to=rack-devel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).