File Coverage

lib/Egg/Request/Apache/MP13.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             package Egg::Request::Apache::MP13;
2             #
3             # Masatoshi Mizuno E<lt>lusheE<64>cpan.orgE<gt>
4             #
5             # $Id: MP13.pm 337 2008-05-14 12:30:09Z lushe $
6             #
7 1     1   517 use strict;
  1         3  
  1         44  
8 1     1   6 use warnings;
  1         3  
  1         34  
9 1     1   516 use Apache ();
  0            
  0            
10             use Apache::Request ();
11             use base qw/ Egg::Request::Apache /;
12              
13             our $VERSION= '3.00';
14              
15             sub _init_handler {
16             my($class, $e)= @_;
17             no strict 'refs'; ## no critic
18             no warnings 'redefine';
19             *{$e->namespace. '::handler'}= sub ($$) { shift->run(@_) };
20             @_;
21             }
22             sub new {
23             my($class, $e, $r)= @_;
24             my $req= $class->SUPER::new($e);
25             my $conf= $req->e->config->{request} ||= {};
26             $req->r( Apache::Request->new($r, %$conf) );
27             $req;
28             }
29              
30             1;
31              
32             __END__
33              
34             =head1 NAME
35              
36             Egg::Request::Apache::MP13 - mod_perl1.3x for Egg request.
37              
38             =head1 DESCRIPTION
39              
40             It is a request class for mod_perl1.3x.
41              
42             This module is read by the automatic operation if L<Egg::Request> investigates
43             the environment and it is necessary. Therefore, it is not necessary to read
44             specifying it.
45              
46             =head1 METHODS
47              
48             =head2 new
49              
50             The object is received from the constructor of the succession class,
51             and L<Apache::Request> object is defined in 'r' method.
52              
53             =head1 SEE ALSO
54              
55             L<Apache::Request>,
56             L<Egg::Request>,
57             L<Egg::Request::Apache>,
58             L<Egg::Release>,
59              
60             =head1 AUTHOR
61              
62             Masatoshi Mizuno E<lt>lusheE<64>cpan.orgE<gt>
63              
64             =head1 COPYRIGHT
65              
66             Copyright (C) 2007 by Bee Flag, Corp. E<lt>L<http://egg.bomcity.com/>E<gt>.
67              
68             This library is free software; you can redistribute it and/or modify
69             it under the same terms as Perl itself, either Perl version 5.8.6 or,
70             at your option, any later version of Perl 5 you may have available.
71              
72             =cut