* Rack-newbie: how do i interrupt rack stack processing?
@ 2010-04-24 15:17 Dan
2010-04-24 17:19 ` Yehuda Katz
0 siblings, 1 reply; 4+ messages in thread
From: Dan @ 2010-04-24 15:17 UTC (permalink / raw)
To: Rack Development
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Rack-newbie: how do i interrupt rack stack processing?
2010-04-24 15:17 Rack-newbie: how do i interrupt rack stack processing? Dan
@ 2010-04-24 17:19 ` Yehuda Katz
2010-04-24 19:01 ` Dan
0 siblings, 1 reply; 4+ messages in thread
From: Yehuda Katz @ 2010-04-24 17:19 UTC (permalink / raw)
To: rack-devel
[-- Attachment #1: Type: text/plain, Size: 804 bytes --]
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 <0xc001d00d@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 = 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
>
[-- Attachment #2: Type: text/html, Size: 1290 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Rack-newbie: how do i interrupt rack stack processing?
2010-04-24 17:19 ` Yehuda Katz
@ 2010-04-24 19:01 ` Dan
2010-04-24 19:10 ` Magnus Holm
0 siblings, 1 reply; 4+ messages in thread
From: Dan @ 2010-04-24 19:01 UTC (permalink / raw)
To: Rack Development
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:
> 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 = 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
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Rack-newbie: how do i interrupt rack stack processing?
2010-04-24 19:01 ` Dan
@ 2010-04-24 19:10 ` Magnus Holm
0 siblings, 0 replies; 4+ messages in thread
From: Magnus Holm @ 2010-04-24 19:10 UTC (permalink / raw)
To: rack-devel@googlegroups.com; +Cc: Rack Development
Yep, that's correct :-)
On 24. apr. 2010, at 21.01, Dan <0xc001d00d@gmail.com> wrote:
> 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:
>> 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 = 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
>>
>>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-04-24 19:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-24 15:17 Rack-newbie: how do i interrupt rack stack processing? Dan
2010-04-24 17:19 ` Yehuda Katz
2010-04-24 19:01 ` Dan
2010-04-24 19:10 ` Magnus Holm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).