Shmuel,

In your Mojolicious Controller:
$self->req->env

Which according to the documentation in Mojo::Message::Request provides:

> Direct access to the "CGI" or "PSGI" environment hash if available.

Let us know if that works (or doesn't...)

- Dotan


On 03/26/2014 07:14 AM, Shmuel Fomberg wrote:
Hi Shlomi.

These modules are for adding PSGI Middleware from inside Mojo. I don't think that they are that useful, as you can do the same externally. 
they don't let me access data passed in the $env.

Shmuel.


On Wed, Mar 26, 2014 at 2:17 AM, Shlomi Fish <shlo...@gmail.com> wrote:
Hi Shmuel,

please reply to the list.


On Mon, Mar 24, 2014 at 4:44 AM, Shmuel Fomberg <shmuelfomb...@gmail.com> wrote:
Hi all.

I'm playing around with PSGI middleware. which is nice.
But can I integrate them with mojolicious? 
Can I access data in the PSGI $env from mojo?


Maybe try https://metacpan.org/pod/Mojolicious::Plugin::PlackMiddleware
or http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Plack_middleware
(I asked about it on #mojo on irc.perl.org and some people answered). Ynon also gave me the first link in an IM chat (previously).

Regards,

    Shlomi Fish
 
Shmuel. 

_______________________________________________
Perl mailing list
Perl@perl.org.il
http://mail.perl.org.il/mailman/listinfo/perl



--
------------------------------------------
Shlomi Fish http://www.shlomifish.org/

Chuck Norris helps the gods that help themselves.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

_______________________________________________
Perl mailing list
Perl@perl.org.il
http://mail.perl.org.il/mailman/listinfo/perl



_______________________________________________
Perl mailing list
Perl@perl.org.il
http://mail.perl.org.il/mailman/listinfo/perl


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


_______________________________________________
Perl mailing list
Perl@perl.org.il
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to