[Catalyst] Re: Accesing PSGI 'env' from in a controller
toby at dryft.net
Fri Oct 21 06:46:39 GMT 2011
Answering my own question here..
Stuff was hidden in:
I know this isn't very portable, but it's for an internal app where
being able to pass some extra info through from the plack middleware
will be very helpfu.
I'm curious though - How would you suggest such stuff is handled?
On 21 October 2011 17:11, Toby Corkindale <toby at dryft.net> wrote:
> Is there a way to access values set in the PSGI "env" store, once
> you're operating inside a catalyst controller method?
> Catalyst::Engine::PSGI looks like it is passing the $env variable
> along, but I haven't worked out how to access it.
> I thought $c->request->env would do the trick, but that method (->env)
> doesn't exist.
> Any hints? Or is this something I should be leaving alone? ;)
> Turning and turning in the widening gyre
> The falcon cannot hear the falconer
> Things fall apart; the center cannot hold
> Mere anarchy is loosed upon the world
Turning and turning in the widening gyre
The falcon cannot hear the falconer
Things fall apart; the center cannot hold
Mere anarchy is loosed upon the world
More information about the Catalyst