Fixed MP2, removed dependency of libapreq in MP engines, fixed C::E::C::APR
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / FastCGI.pm
1 package Catalyst::Engine::FastCGI;
2
3 use strict;
4 use base qw(Catalyst::Engine::FastCGI::Base Catalyst::Engine::CGI);
5
6 =head1 NAME
7
8 Catalyst::Engine::FastCGI - Catalyst FastCGI Engine
9
10 =head1 SYNOPSIS
11
12 A script using the Catalyst::Engine::FastCGI module might look like:
13
14     #!/usr/bin/perl -w
15
16     BEGIN { 
17        $ENV{CATALYST_ENGINE} = 'FastCGI';
18     }
19
20     use strict;
21     use lib '/path/to/MyApp/lib';
22     use MyApp;
23
24     MyApp->run;
25
26 =head1 DESCRIPTION
27
28 This is the Catalyst engine for FastCGI.
29
30 =head1 OVERLOADED METHODS
31
32 This class overloads some methods from C<Catalyst::Engine::FastCGI::Base>.
33
34 =over 4
35
36 =item $c->prepare_body
37
38 =cut
39
40 sub prepare_body { 
41     shift->Catalyst::Engine::CGI::prepare_body(@_);
42 }
43
44 =item $c->prepare_parameters
45
46 =cut
47
48 sub prepare_parameters { 
49     shift->Catalyst::Engine::CGI::prepare_parameters(@_);
50 }
51
52 =item $c->prepare_request
53
54 =cut
55
56 sub prepare_request {
57     my ( $c, $fastcgi, @arguments ) = @_;
58     CGI::_reset_globals();
59     $c->SUPER::prepare_request($fastcgi);
60     $c->Catalyst::Engine::CGI::prepare_request(@arguments);
61 }
62
63 =item $c->prepare_uploads
64
65 =cut
66
67 sub prepare_uploads { 
68     shift->Catalyst::Engine::CGI::prepare_uploads(@_);
69 }
70
71 =head1 SEE ALSO
72
73 L<Catalyst>, L<Catalyst::Engine::FastCGI::Base>, L<Catalyst::Engine::CGI>.
74
75 =head1 AUTHOR
76
77 Sebastian Riedel, C<sri@cpan.org>
78 Christian Hansen, C<ch@ngmedia.com>
79
80 =head1 COPYRIGHT
81
82 This program is free software, you can redistribute it and/or modify it under
83 the same terms as Perl itself.
84
85 =cut
86
87 1;