CC: | miyagawa [...] gmail.com |
Subject: | wish: PSGI/Plack support |
CGI::Application::Dispatch needs to be updated to support PSGI/Plack.
See the thread below.
Mark
Begin forwarded message:
Date: Sat, 12 Dec 2009 20:02:22 -0800
From: Tatsuhiko Miyagawa <miyagawa@gmail.com>
To: Kazuho Oku <kazuhooku@gmail.com>
Cc: mark@summersault.com
Subject: Re: Adding CGI::App::Dispatch support to CGI::App::PSGI
Hi,
Personally I'm fine with having two dists, as long as both reference
each other in their documentations, explaining when you should use
which.
Also Mark, it'd be nice if CGI::Application::Dispatch can be upgraded
to add PSGI support natively via CGI::Application::PSGI in some way.
Currently it seems the API (not using ->run?) seems incompatible and
it does functional style calls to CGI like CGI::path_info() which
makes it incompatible to CGI::PSGI.
Not being a CGI::App user, just my 2c. Thanks!
On Sat, Dec 12, 2009 at 7:24 PM, Kazuho Oku <kazuhooku@gmail.com> wrote:
Show quoted text
> Hi,
>
> I have written a module called CGI::Application::Emulate::PSGI.
> http://github.com/kazuho/CGI-Application-Emulate-PSGI
>
> It is an PSGI adapter for CGI::App, but is different from
> CGI::Application::PSGI in two points.
>
> - support for CGI::Application::Dispatch
> - support for func-style access to CGI.pm (overrides %ENV)
>
> My question is, are you interested in merging CGI::App::Emulate::PSGI
> into CGI::App::PSGI?
>
> The two modules have different APIs so it might be difficult to get
> them together, but from end-users' perspective, it would be better not
> to have two modules for one purpose uploaded to CPAN.
>
> Or if you think it is OK to just have two modules on CPAN, I will
> upload CGI::App::Emulate::PSGI.
>
>
> For couple of years I have been enjoying using CGI::Application, and
> am happy to see my CGI::App-based application start running on Plack.
> I plan to switch from mod_fcgid to Plack::Server::Standalone::Prefork
> by Wednesday.
>
> Thank you in advance. Looking forward to hear from you.
>
> --
> Kazuho Oku
>