CC: | miyagawa [...] bulknews.net |
Subject: | Needs discussion: wish: PSGI support in CGI.pm |
Miyagawa has proposed that CGI.pm include direct support for the PSGI
specification. An initial implementation has already been completed and
is available in the 'pgsi_support' branch of my repo:
http://github.com/markstos/CGI.pm/commits/psgi_support
I support the theory of the project, which ports WSGI to Perl, which
seems to have proven valuable in the Python and Ruby communities. This
post explains more:
http://bulknews.typepad.com/blog/2009/09/psgi-perl-wsgi.html
Before this work is merged into the core, a few things need to happen:
1. We need to agree on the exact API
2. It needs to be tested and documented
3. Lincoln Stein needs to approve it.
Here are my concerns regarding the API as it is proposed:
1. I'm concerned that the CGI::PSGI module exists primarily to set a
variable: $CGI::PSGI. Directly setting the global or using a pragma
seems more consistent with existing features.
2. I'm concerned about adding *any* significant features to CGI.pm at
this point. However, there is no easy way to add this functionality
externally.
Ideally, if this moves forward, it would be ideal to have a similar
update released to CGI::Simple at the same time.
Next, I'm interested in feedback from other CGI.pm users about the
proposed change