1 package Catalyst::Engine::Apache::MP19::Base;
4 use base 'Catalyst::Engine::Apache::Base';
7 use Apache::Connection ();
9 use Apache::RequestIO ();
10 use Apache::RequestRec ();
11 use Apache::RequestUtil ();
13 Apache::Const->import( -compile => ':common' );
17 Catalyst::Engine::Apache::MP19::Base - Base class for MP 1.9 Engines
25 This is a base class for MP 1.99 Engines.
27 =head1 OVERLOADED METHODS
29 This class overloads some methods from C<Catalyst::Engine::Apache::Base>.
33 =item $c->finalize_headers
37 sub finalize_headers {
40 for my $name ( $c->response->headers->header_field_names ) {
41 next if $name =~ /Content-Type/i;
42 my @values = $c->response->header($name);
43 $c->apache->headers_out->add( $name => $_ ) for @values;
46 if ( $c->response->header('Set-Cookie') && $c->response->status >= 300 ) {
47 my @values = $c->response->header('Set-Cookie');
48 $c->apache->err_headers_out->add( 'Set-Cookie' => $_ ) for @values;
51 $c->apache->status( $c->response->status );
52 $c->apache->content_type( $c->response->header('Content-Type') );
61 sub handler : method {
62 shift->SUPER::handler(@_);
69 L<Catalyst>, L<Catalyst::Engine>, L<Catalyst::Engine::Apache::Base>.
73 Sebastian Riedel, C<sri@cpan.org>
74 Christian Hansen C<ch@ngmedia.com>
78 This program is free software, you can redistribute it and/or modify it under
79 the same terms as Perl itself.