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?
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?
> 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?
>> 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?