From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.140.141.15 with SMTP id o15cs4055rvd; Tue, 5 Jan 2010 15:47:49 -0800 (PST) Received: from mr.google.com ([10.101.152.34]) by 10.101.152.34 with SMTP id e34mr9177257ano.29.1262735269075 (num_hops = 1); Tue, 05 Jan 2010 15:47:49 -0800 (PST) Received: by 10.101.152.34 with SMTP id e34mr1338507ano.29.1262735267677; Tue, 05 Jan 2010 15:47:47 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.213.62.209 with SMTP id y17ls122586ebh.1.p; Tue, 05 Jan 2010 15:47:46 -0800 (PST) Received: by 10.213.24.24 with SMTP id t24mr3866498ebb.10.1262735265668; Tue, 05 Jan 2010 15:47:45 -0800 (PST) Received: by 10.213.24.24 with SMTP id t24mr3866497ebb.10.1262735265644; Tue, 05 Jan 2010 15:47:45 -0800 (PST) Return-Path: Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by gmr-mx.google.com with ESMTP id 18si2667799ewy.12.2010.01.05.15.47.45; Tue, 05 Jan 2010 15:47:45 -0800 (PST) Received-SPF: neutral (google.com: 74.125.78.26 is neither permitted nor denied by best guess record for domain of ibc@aliax.net) client-ip=74.125.78.26; Received: by ey-out-2122.google.com with SMTP id 22so2533762eye.7 for ; Tue, 05 Jan 2010 15:47:45 -0800 (PST) Received: by 10.213.24.8 with SMTP id t8mr12098516ebb.3.1262735265406; Tue, 05 Jan 2010 15:47:45 -0800 (PST) Return-Path: Received: from ibc-laptop.localnet ([89.7.124.175]) by mx.google.com with ESMTPS id 14sm13687126ewy.15.2010.01.05.15.47.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 05 Jan 2010 15:47:43 -0800 (PST) From: =?utf-8?q?I=C3=B1aki_Baz_Castillo?= To: rack-devel@googlegroups.com Subject: Re: Why env.object_id is different in each middleware? Date: Wed, 6 Jan 2010 00:47:41 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.28-16-generic; KDE/4.3.2; x86_64; ; ) References: <200912092359.08240.ibc@aliax.net> In-Reply-To: MIME-Version: 1.0 Message-Id: <201001060047.41311.ibc@aliax.net> X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 74.125.78.26 is neither permitted nor denied by best guess record for domain of ibc@aliax.net) smtp.mail=ibc@aliax.net X-Original-Sender: ibc@aliax.net Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: X-Thread-Url: http://groups.google.com/group/rack-devel/t/5d93266373a372ea X-Message-Url: http://groups.google.com/group/rack-devel/msg/187a02a4f6d2b7c1 Sender: rack-devel@googlegroups.com List-Unsubscribe: , List-Subscribe: , Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable El Martes, 5 de Enero de 2010, Ryan Tomayko escribi=C3=B3: > Or maybe this really is something the env could be useful for and I've > just never run into a good case. Can anyone provide real examples of > where it would be necessary? My real case: I want to use Clogger to log the authenticated user ($env["REMOTE_USER"]). Clogger expects that it runs after an authentication middleware which adds= =20 such env entry. However in my case I need to decide the "remote_user" in th= e=20 final Rack application so I need that changes done in env by the last Rack= =20 application are visible for previous middlewares (Clogger). Perhaps env shouldn't be used for this purpose, but what else? adding such= =20 info in the response headers seem a hack to me, what about if I want to pas= s=20 an object or a hash rather than a single string? =2D-=20 I=C3=B1aki Baz Castillo