Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Rack-newbie: how do i interrupt rack stack processing?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dan  
View profile  
 More options Apr 24 2010, 11:17 am
From: Dan <0xc001d...@gmail.com>
Date: Sat, 24 Apr 2010 08:17:16 -0700 (PDT)
Local: Sat, Apr 24 2010 11:17 am
Subject: Rack-newbie: how do i interrupt rack stack processing?
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yehuda Katz  
View profile  
 More options Apr 24 2010, 1:19 pm
From: Yehuda Katz <wyc...@gmail.com>
Date: Sat, 24 Apr 2010 10:19:35 -0700
Local: Sat, Apr 24 2010 1:19 pm
Subject: Re: Rack-newbie: how do i interrupt rack stack processing?

Just move My::HTTPHeaderValidator to the top of the stack :)

Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan  
View profile  
 More options Apr 24 2010, 3:01 pm
From: Dan <0xc001d...@gmail.com>
Date: Sat, 24 Apr 2010 12:01:26 -0700 (PDT)
Local: Sat, Apr 24 2010 3:01 pm
Subject: Re: Rack-newbie: how do i interrupt rack stack processing?
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 pm, Yehuda Katz <wyc...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Magnus Holm  
View profile  
 More options Apr 24 2010, 3:10 pm
From: Magnus Holm <judo...@gmail.com>
Date: Sat, 24 Apr 2010 21:10:14 +0200
Local: Sat, Apr 24 2010 3:10 pm
Subject: Re: Rack-newbie: how do i interrupt rack stack processing?
Yep, that's correct :-)

On 24. apr. 2010, at 21.01, Dan <0xc001d...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »