From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.204.72.79 with SMTP id l15cs414817bkj; Fri, 24 Jul 2009 18:44:08 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.100.6.16 as permitted sender) client-ip=10.100.6.16; Authentication-Results: mr.google.com; spf=pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.100.6.16 as permitted sender) smtp.mail=grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com; dkim=pass header.i=grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com Received: from mr.google.com ([10.100.6.16]) by 10.100.6.16 with SMTP id 16mr7898265anf.8.1248486246942 (num_hops = 1); Fri, 24 Jul 2009 18:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:received:x-sender:x-apparently-to :mime-version:content-type:received:date:x-ip:user-agent :x-http-useragent:message-id:subject:from:to:x-google-approved :reply-to:sender:precedence:x-google-loop:mailing-list:list-id :list-post:list-help:list-unsubscribe:x-beenthere-env:x-beenthere; bh=NpeORKNa8/FIJNMhA+hPeRP8f+Wo3MKjpQkUsDDk/MQ=; b=NrU7x2JQ6/CpNEygZyRNfxqRhyPmsMz83AJL2VkvrgAo3Uzx8iwJiEdJL847xxZOUg s4F21BNrp76loZ/PidHLhMiaXy0cat5B7d/e7n/JVHDtHcII0v6pMepixQg4LqLM3zKK CcKzCrehPalprYLRC4AMWWGElwsVNPTctogYU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:mime-version:content-type:date:x-ip :user-agent:x-http-useragent:message-id:subject:from:to :x-google-approved:reply-to:sender:precedence:x-google-loop :mailing-list:list-id:list-post:list-help:list-unsubscribe :x-beenthere-env:x-beenthere; b=A7J6fDmNFch2sucVHX7yeEvgotvb0Lnx79xl1/V1WWEXG62L/1HUuKa1UBVvLy0GLH OLXLSXmCj+wM/bWnJMZHJDMFEya0cIQnUezxz4cizlKMblZlHK0kYZqM45rIbFCVn2lt OY+LNmZg3e7AaAaGMn86dKN9T4ya6AL4s2kjs= Received: by 10.100.6.16 with SMTP id 16mr1156275anf.8.1248486246749; Fri, 24 Jul 2009 18:44:06 -0700 (PDT) Received: by 10.176.146.33 with SMTP id t33gr1520yqd.0; Fri, 24 Jul 2009 18:44:03 -0700 (PDT) X-Sender: psadauskas@gmail.com X-Apparently-To: rack-devel@googlegroups.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Received: by 10.151.39.21 with SMTP id r21mr1103937ybj.11.1248471005025; Fri, 24 Jul 2009 14:30:05 -0700 (PDT) Date: Fri, 24 Jul 2009 14:30:04 -0700 (PDT) X-IP: 97.122.203.156 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090718 Firefox/3.5.1,gzip(gfe),gzip(gfe) Message-ID: <4963d66f-cbdc-4248-afe8-142bb64cf077@t11g2000prh.googlegroups.com> Subject: [rack-contrib] Rack::Runtime Middleware From: Paul To: Rack Development X-Google-Approved: kenneth.kalmer@gmail.com via web at 2009-07-25 01:44:03 Reply-To: rack-devel@googlegroups.com Sender: rack-devel@googlegroups.com Precedence: bulk X-Google-Loop: groups Mailing-List: list rack-devel@googlegroups.com; contact rack-devel+owner@googlegroups.com List-Id: List-Post: List-Help: List-Unsubscribe: , X-BeenThere-Env: rack-devel@googlegroups.com X-BeenThere: rack-devel@googlegroups.com 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