506927b0b742175ac3e7931f17db894be5c2a261
[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 and C<Catalyst::Engine::CGI>.
34
35 =over 4
36
37 =item $c->prepare_body
38
39 =cut
40
41 sub prepare_body { 
42     shift->Catalyst::Engine::CGI::prepare_body(@_);
43 }
44
45 =item $c->prepare_parameters
46
47 =cut
48
49 sub prepare_parameters { 
50     shift->Catalyst::Engine::CGI::prepare_parameters(@_);
51 }
52
53 =item $c->prepare_request
54
55 =cut
56
57 sub prepare_request {
58     my ( $c, $request, @arguments ) = @_;
59     CGI::_reset_globals();
60     $c->SUPER::prepare_request($request);
61     $c->Catalyst::Engine::CGI::prepare_request(@arguments);
62 }
63
64 =item $c->prepare_uploads
65
66 =cut
67
68 sub prepare_uploads { 
69     shift->Catalyst::Engine::CGI::prepare_uploads(@_);
70 }
71
72 =back 
73
74 =head1 SEE ALSO
75
76 L<Catalyst>, L<Catalyst::Engine::FastCGI::Base>, L<Catalyst::Engine::CGI>.
77
78 =head1 AUTHOR
79
80 Sebastian Riedel, C<sri@cpan.org>
81 Christian Hansen, C<ch@ngmedia.com>
82
83 =head1 COPYRIGHT
84
85 This program is free software, you can redistribute it and/or modify it under
86 the same terms as Perl itself.
87
88 =cut
89
90 1;