Commit | Line | Data |
d1d9793f |
1 | package Catalyst::Engine::FastCGI; |
ffb41d94 |
2 | |
3 | use strict; |
d1d9793f |
4 | use base qw(Catalyst::Engine::FastCGI::Base Catalyst::Engine::CGI); |
ffb41d94 |
5 | |
6 | =head1 NAME |
7 | |
d1d9793f |
8 | Catalyst::Engine::FastCGI - Catalyst FastCGI Engine |
ffb41d94 |
9 | |
10 | =head1 SYNOPSIS |
11 | |
d1d9793f |
12 | A script using the Catalyst::Engine::FastCGI module might look like: |
c9afa5fc |
13 | |
14 | #!/usr/bin/perl -w |
15 | |
16 | BEGIN { |
d1d9793f |
17 | $ENV{CATALYST_ENGINE} = 'FastCGI'; |
c9afa5fc |
18 | } |
19 | |
20 | use strict; |
21 | use lib '/path/to/MyApp/lib'; |
22 | use MyApp; |
23 | |
24 | MyApp->run; |
ffb41d94 |
25 | |
26 | =head1 DESCRIPTION |
27 | |
28 | This is the Catalyst engine for FastCGI. |
29 | |
e2fd5b5f |
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 ) = @_; |
316bf0f0 |
58 | CGI::_reset_globals(); |
e2fd5b5f |
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 | |
ffb41d94 |
71 | =head1 SEE ALSO |
72 | |
e2fd5b5f |
73 | L<Catalyst>, L<Catalyst::Engine::FastCGI::Base>, L<Catalyst::Engine::CGI>. |
ffb41d94 |
74 | |
75 | =head1 AUTHOR |
76 | |
77 | Sebastian Riedel, C<sri@cpan.org> |
c2e8e6fa |
78 | Christian Hansen, C<ch@ngmedia.com> |
ffb41d94 |
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; |