Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

more doc

  • Loading branch information...
commit 9fd438869931e59d1f2efce7feb63f3035e18e13 1 parent d7699e3
@kazuho authored
Showing with 49 additions and 2 deletions.
  1. +35 −0 README
  2. +14 −2 lib/CGI/Application/Emulate/PSGI.pm
View
35 README
@@ -0,0 +1,35 @@
+NAME
+ CGI::Application::Emulate::PSGI - Legacy-code-friendly PSGI adapter for
+ CGI::Application
+
+SYNOPSIS
+ my $app = CGI::Application::Emulate::PSGI->handler(sub {
+ my $webapp = WebApp->new();
+ $webapp->run();
+ });
+
+DESCRIPTION
+ CGI::Application::Emulate::PSGI is a runner to run CGI::Application as a
+ PSGI application. Differences from CGI::Application::PSGI are:
+
+ uses CGI.pm instead of CGI::PSGI
+ CGI::Application::PSGI does not support programs calling CGI.pm in
+ func-style (like CGI::virtual_host()).
+ CGI::Application::Emulate::PSGI sets up environment variables so
+ that codes using CGI.pm will work.
+
+ compatible with CGI::Application::Dispatch
+ The interface of CGI::Application::Emulate::PSGI is different from
+ CGI::Application::PSGI, and is compatible with
+ CGI::Application::Dispatch.
+
+AUTHOR
+ Kazuho Oku <kazuhooku@gmail.com>
+
+LICENSE
+ This library is free software; you can redistribute it and/or modify it
+ under the same terms as Perl itself.
+
+SEE ALSO
+ CGI::Application::PSGI
+
View
16 lib/CGI/Application/Emulate/PSGI.pm
@@ -56,7 +56,7 @@ __END__
=head1 NAME
-CGI::Application::Emulate::PSGI - Legacy-friendly PSGI adapter for CGI::Application
+CGI::Application::Emulate::PSGI - Legacy-code-friendly PSGI adapter for CGI::Application
=head1 SYNOPSIS
@@ -67,7 +67,19 @@ CGI::Application::Emulate::PSGI - Legacy-friendly PSGI adapter for CGI::Applicat
=head1 DESCRIPTION
-CGI::Application::Emulate::PSGI is a runner to run L<CGI::Application> as a PSGI application. It is compatible with L<CGI::Application::Dispatch>, and other modules calling L<CGI.pm> not in OO-style.
+CGI::Application::Emulate::PSGI is a runner to run L<CGI::Application> as a PSGI application. Differences from L<CGI::Application::PSGI> are:
+
+=over 4
+
+=item uses L<CGI.pm> instead of L<CGI::PSGI>
+
+L<CGI::Application::PSGI> does not support programs calling L<CGI.pm> in func-style (like CGI::virtual_host()). CGI::Application::Emulate::PSGI sets up environment variables so that codes using L<CGI.pm> will work.
+
+=item compatible with L<CGI::Application::Dispatch>
+
+The interface of CGI::Application::Emulate::PSGI is different from L<CGI::Application::PSGI>, and is compatible with L<CGI::Application::Dispatch>.
+
+=back
=head1 AUTHOR
Please sign in to comment.
Something went wrong with that request. Please try again.