Reworked Engine namespaces
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / FCGI / Base.pm
diff --git a/lib/Catalyst/Engine/FCGI/Base.pm b/lib/Catalyst/Engine/FCGI/Base.pm
new file mode 100644 (file)
index 0000000..07761f8
--- /dev/null
@@ -0,0 +1,48 @@
+package Catalyst::Engine::FCGI::Base;
+
+use strict;
+use FCGI;
+
+=head1 NAME
+
+Catalyst::Engine::FCGI::Base - Base class for FastCGI Engines
+
+=head1 DESCRIPTION
+
+This is a base class for FastCGI engines.
+
+=head1 METHODS
+
+=over 4
+
+=item $c->run
+
+=cut
+
+sub run {
+    my $class   = shift;
+    my $request = FCGI::Request();
+    while ( $request->Accept() >= 0 ) {
+        $class->handler;
+    }
+}
+
+=back
+
+=head1 SEE ALSO
+
+L<Catalyst>.
+
+=head1 AUTHOR
+
+Sebastian Riedel, C<sri@cpan.org>
+Christian Hansen, C<ch@ngmedia.com>
+
+=head1 COPYRIGHT
+
+This program is free software, you can redistribute it and/or modify it under
+the same terms as Perl itself.
+
+=cut
+
+1;