[Catalyst-dev] Quick Catalyst::Plugin::SubRequest notes
Matt S Trout
dbix-class at trout.me.uk
Mon Mar 10 21:32:53 GMT 2008
On Mon, Mar 03, 2008 at 11:53:31AM +0100, Aristotle Pagaltzis wrote:
> Hi all,
>
> just jotting down somewhere more permanent than IRC: SubRequest
> needs two things:
>
> 1. A way to return the entire ::Response object rather than just
> the body.
Patches welcome.
> 2. An `is_subrequest` query method that, obviously enough,
> returns true during a subrequest.
That turns out to suck, because what happens if your subreq needs to do
some other subreq and handle that?
In any case, a subrequest should -by default- be transparent.
If you want to be able to tell, just include is_subrequest => 1 in your
stash stuff and test the stash var in your app code.
A doc patch showing how to do this would be welcome.
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
More information about the Catalyst-dev
mailing list