line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
4
|
|
|
4
|
|
25
|
use strict; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
190
|
|
2
|
|
|
|
|
|
|
package POE::Component::Server::HTTP::Request; |
3
|
|
|
|
|
|
|
|
4
|
4
|
|
|
4
|
|
21
|
use vars qw(@ISA); |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
171
|
|
5
|
4
|
|
|
4
|
|
25
|
use HTTP::Request; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
858
|
|
6
|
|
|
|
|
|
|
@ISA = qw(HTTP::Request); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
0
|
|
|
0
|
1
|
|
my $package = shift; |
10
|
0
|
|
|
|
|
|
my $self = $package->SUPER::new(@_); |
11
|
0
|
|
|
|
|
|
$self->is_error($self->method eq 'ERROR'); |
12
|
0
|
|
|
|
|
|
return $self |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub connection { |
16
|
0
|
|
|
0
|
0
|
|
return $_[0]->{connection}; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub is_error { |
20
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
21
|
0
|
0
|
|
|
|
|
if (@_) { |
22
|
0
|
0
|
|
|
|
|
if($_[0]) { |
23
|
0
|
|
|
|
|
|
$self->{is_error} = 1; |
24
|
|
|
|
|
|
|
} else { |
25
|
0
|
|
|
|
|
|
$self->{is_error} = 0; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
} |
28
|
0
|
|
|
|
|
|
return $self->{is_error}; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |