1 package Catalyst::Engine::CGI::NPH;
4 use base 'Catalyst::Engine::CGI';
10 Catalyst::Engine::CGI::NPH - Catalyst CGI Engine
14 A script using the Catalyst::Engine::CGI::NPH module might look like:
19 $ENV{CATALYST_ENGINE} = 'CGI::NPH';
23 use lib '/path/to/MyApp/lib';
30 This Catalyst engine returns a complete HTTP response message.
32 =head1 OVERLOADED METHODS
34 This class overloads some methods from C<Catalyst::Engine::CGI>.
38 =item $c->finalize_headers
42 sub finalize_headers {
45 my $protocol = $ENV{SERVER_PROTOCOL} || 'HTTP/1.0';
46 my $status = $c->response->status || 200;
47 my $message = HTTP::Status::status_message($status);
49 printf( "%s %d %s\015\012", $protocol, $status, $message );
51 $c->SUPER::finalize_headers;
58 L<Catalyst>, L<Catalyst::Engine::CGI>.
62 Sebastian Riedel, C<sri@cpan.org>
63 Christian Hansen, C<ch@ngmedia.com>
67 This program is free software, you can redistribute it and/or modify it under
68 the same terms as Perl itself.