From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.239.138.72 with SMTP id o8cs110235hbo; Sat, 24 Apr 2010 10:14:06 -0700 (PDT) Received-SPF: pass (google.com: domain of rack-devel+bncCIzglsP2BBDbzczeBBoEunXSYw@googlegroups.com designates 10.142.248.35 as permitted sender) client-ip=10.142.248.35; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCIzglsP2BBDbzczeBBoEunXSYw@googlegroups.com designates 10.142.248.35 as permitted sender) smtp.mail=rack-devel+bncCIzglsP2BBDbzczeBBoEunXSYw@googlegroups.com; dkim=pass header.i=rack-devel+bncCIzglsP2BBDbzczeBBoEunXSYw@googlegroups.com Received: from mr.google.com ([10.142.248.35]) by 10.142.248.35 with SMTP id v35mr617014wfh.47.1272129245226 (num_hops = 1); Sat, 24 Apr 2010 10:14:05 -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:received-spf:received:mime-version:received :received:date:x-ip: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; bh=kRPj3GC3YM7fc+PK7MGkOfU2SsLp3lZ/vED7Eolyi9s=; b=RJTPk3JOvDEKAEAh1s+y90jsnSzZL+Y4dXuWcdWdVg4zsMCtUBQKI3VEhmQV5+NzV0 CYAQwc3yZt+KbAQsCrne6dwa+Zi9s7eH3shbYn4AyvOjPPXvxC3nu/70M/Pls9HpWfwu LIa0c5lj38/SSARi0NPg8LmOlT9uqU4JfSZmY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:date:x-ip: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; b=m5/sqfFFzYMwJE6FF4zkzlWM5JP5jjFuqCmM87tineJPvgmt3m0EzxHOBUYePFa9Ug lajrK5ApLITD6iso2mufmzxdgMVfP/PRVtn1Z6uk8TpQByysM5qzZx524T+kx2QlFSFr J52NlGHPcHh5Y1TbKO0Yh+1gupj1+lA8Ds1uM= Received: by 10.142.248.35 with SMTP id v35mr169113wfh.47.1272129243837; Sat, 24 Apr 2010 10:14:03 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.142.248.9 with SMTP id v9ls34211914wfh.1.p; Sat, 24 Apr 2010 10:14:02 -0700 (PDT) Received: by 10.150.132.17 with SMTP id f17mr1215509ybd.9.1272129240110; Sat, 24 Apr 2010 10:14:00 -0700 (PDT) Received: by 10.100.22.14 with SMTP id 14mr1162878anv.34.1272122236898; Sat, 24 Apr 2010 08:17:16 -0700 (PDT) Received: by 10.100.22.14 with SMTP id 14mr1162876anv.34.1272122236818; Sat, 24 Apr 2010 08:17:16 -0700 (PDT) Return-Path: <0xc001d00d@gmail.com> Received: from mail-gx0-f196.google.com (mail-gx0-f196.google.com [209.85.217.196]) by gmr-mx.google.com with ESMTP id 12si263340gxk.2.2010.04.24.08.17.16; Sat, 24 Apr 2010 08:17:16 -0700 (PDT) Received-SPF: pass (google.com: domain of 0xc001d00d@gmail.com designates 209.85.217.196 as permitted sender) client-ip=209.85.217.196; Received: by mail-gx0-f196.google.com with SMTP id 20so7750998gxk.8 for ; Sat, 24 Apr 2010 08:17:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.161.5 with SMTP id j5mr340254ybe.81.1272122236768; Sat, 24 Apr 2010 08:17:16 -0700 (PDT) Received: by i40g2000yqd.googlegroups.com with HTTP; Sat, 24 Apr 2010 08:17:16 -0700 (PDT) Date: Sat, 24 Apr 2010 08:17:16 -0700 (PDT) X-IP: 178.120.54.133 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: <35d4c11a-b931-4bce-83f5-d71fb2bb7f42@i40g2000yqd.googlegroups.com> Subject: 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.217.196 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 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 = 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=en