File Coverage

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