1 package Catalyst::Engine::Apache::MP13;
4 use base 'Catalyst::Engine::Apache::Base';
7 use Apache::Constants ();
8 use Apache::Request ();
10 Apache::Constants->import(':common');
14 Catalyst::Engine::Apache::MP13 - Catalyst Apache MP13 Engine
22 This is the Catalyst engine specialized for Apache mod_perl version 1.3x.
24 =head1 OVERLOADED METHODS
26 This class overloads some methods from C<Catalyst::Engine::Apache::Base>.
30 =item $c->finalize_headers
34 sub finalize_headers {
37 for my $name ( $c->response->headers->header_field_names ) {
38 next if $name =~ /Content-Type/i;
39 my @values = $c->response->header($name);
40 $c->apache->headers_out->add( $name => $_ ) for @values;
43 if ( $c->response->header('Set-Cookie') && $c->response->status >= 300 ) {
44 my @values = $c->response->header('Set-Cookie');
45 $c->apache->err_headers_out->add( 'Set-Cookie' => $_ ) for @values;
48 $c->apache->status( $c->response->status );
49 $c->apache->content_type( $c->response->header('Content-Type') );
51 $c->apache->send_http_header;
61 shift->SUPER::handler(@_);
64 =item $c->prepare_request($r)
70 $c->apache( Apache::Request->new($r) );
73 =item $c->prepare_uploads
82 for my $upload ( $c->apache->upload ) {
84 my $object = Catalyst::Request::Upload->new(
85 filename => $upload->filename,
86 size => $upload->size,
87 tempname => $upload->tempname,
91 push( @uploads, $upload->name, $object );
94 $c->request->upload(@uploads);
101 L<Catalyst>, L<Catalyst::Engine>, L<Catalyst::Engine::Apache::Base>.
105 Sebastian Riedel, C<sri@cpan.org>
106 Christian Hansen C<ch@ngmedia.com>
110 This program is free software, you can redistribute it and/or modify it under
111 the same terms as Perl itself.