From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.239.138.72 with SMTP id o8cs113608hbo; Sat, 24 Apr 2010 12:01:29 -0700 (PDT) Received-SPF: pass (google.com: domain of rack-devel+bncCIzglsP2BBCHgM3eBBoEAcFqAg@googlegroups.com designates 10.101.175.38 as permitted sender) client-ip=10.101.175.38; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCIzglsP2BBCHgM3eBBoEAcFqAg@googlegroups.com designates 10.101.175.38 as permitted sender) smtp.mail=rack-devel+bncCIzglsP2BBCHgM3eBBoEAcFqAg@googlegroups.com; dkim=pass header.i=rack-devel+bncCIzglsP2BBCHgM3eBBoEAcFqAg@googlegroups.com Received: from mr.google.com ([10.101.175.38]) by 10.101.175.38 with SMTP id c38mr982875anp.43.1272135688878 (num_hops = 1); Sat, 24 Apr 2010 12:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:mime-version:received:received:date :in-reply-to:x-ip:references:user-agent:x-http-useragent:message-id :subject:from:to:x-original-authentication-results:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; bh=5EGB51a3mi+DxMzXj7yy5EdgAB2qmS1drdeVCxBvbGs=; b=CXhZO4dkGYwPX6Qd/9nsUvyZxGgAYOPsn6YrngXC5PUYs75IkMtt4vqWmj0Q6Wjs4V Xx6/wARZ1ewy+5g8gG/CbXaKiRucAVJfPYLMp294Yg732B0iy0a89cGkAbrkTPdP9UOT jbNfh+X+0Ud4uA0UUzgO8fMNcGSQfHc0gfK84= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:date:in-reply-to:x-ip :references:user-agent:x-http-useragent:message-id:subject:from:to :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; b=n+ODYDqUYoqusKGl96b0WDJL1BXJYHNDzeSedCfQmwNw9yCzgsQH1j2FSIpQ0j62Rc Ug4tHgg5ph6vov00qUKNUXee6dyxVC/uPNYCKsBNnkUTVrVRXuVH7z06zgPTm7PSe/wj Q+x1kFYqNlheIu1zR6TnfrmxxsbnXj/t1x3oo= Received: by 10.101.175.38 with SMTP id c38mr270846anp.43.1272135687461; Sat, 24 Apr 2010 12:01:27 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.101.170.19 with SMTP id x19ls32533021ano.0.p; Sat, 24 Apr 2010 12:01:26 -0700 (PDT) Received: by 10.100.80.20 with SMTP id d20mr1325116anb.11.1272135686353; Sat, 24 Apr 2010 12:01:26 -0700 (PDT) Received: by 10.100.80.20 with SMTP id d20mr1325115anb.11.1272135686314; Sat, 24 Apr 2010 12:01:26 -0700 (PDT) Return-Path: <0xc001d00d@gmail.com> Received: from mail-yw0-f164.google.com (mail-yw0-f164.google.com [209.85.211.164]) by gmr-mx.google.com with ESMTP id 17si4447225anx.2.2010.04.24.12.01.26; Sat, 24 Apr 2010 12:01:26 -0700 (PDT) Received-SPF: pass (google.com: domain of 0xc001d00d@gmail.com designates 209.85.211.164 as permitted sender) client-ip=209.85.211.164; Received: by mail-yw0-f164.google.com with SMTP id 36so8424047ywh.27 for ; Sat, 24 Apr 2010 12:01:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.234.18 with SMTP id g18mr273196anh.62.1272135686255; Sat, 24 Apr 2010 12:01:26 -0700 (PDT) Received: by u34g2000yqu.googlegroups.com with HTTP; Sat, 24 Apr 2010 12:01:26 -0700 (PDT) Date: Sat, 24 Apr 2010 12:01:26 -0700 (PDT) In-Reply-To: X-IP: 178.120.54.133 References: <35d4c11a-b931-4bce-83f5-d71fb2bb7f42@i40g2000yqd.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100402 Namoroka/3.6.3,gzip(gfe) Message-ID: Subject: Re: Rack-newbie: how do i interrupt rack stack processing? From: Dan <0xc001d00d@gmail.com> To: Rack Development X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of 0xc001d00d@gmail.com designates 209.85.211.164 as permitted sender) smtp.mail=0xc001d00d@gmail.com X-Original-Sender: 0xc001d00d@gmail.com 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: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable It works! :) Just to clarify. In case I need to stop my app walk through stack I should not inquire @app.call, right? On Apr 24, 8:19=A0pm, Yehuda Katz wrote: > Just move My::HTTPHeaderValidator to the top of the stack :) > > Yehuda Katz > Developer | Engine Yard > (ph) 718.877.1325 > > On Sat, Apr 24, 2010 at 8:17 AM, Dan <0xc001d...@gmail.com> wrote: > > Hello, > > > Currently I'm composing my very first rack-based application and after > > few unsuccessful (unqualified) web searches decided to ask for > > support. > > > My app looks like: > > > require '...' > > > use Rack::ContentLength > > use My::Filter2 > > use My::Filter1 > > use My::HTTPHeaderValidator > > > app =3D Proc.new {...} > > > run app > > > Can I return response to client from `My::HTTPHeaderValidator' (in > > case of unacceptable headers received) and bypass (or interrupt > > execution of) My::Filter2, My::Filter3 and others? > > > -- > > Subscription settings: > >http://groups.google.com/group/rack-devel/subscribe?hl=3Den > >