line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
926
|
use 5.008; |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
42
|
|
2
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
61
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Data::Semantic::URI::http; |
6
|
|
|
|
|
|
|
our $VERSION = '1.100850'; |
7
|
|
|
|
|
|
|
# ABSTRACT: Semantic data class for http URIs |
8
|
1
|
|
|
1
|
|
6
|
use parent qw(Data::Semantic::URI); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
9
|
|
|
|
|
|
|
__PACKAGE__->mk_scalar_accessors(qw(scheme)); |
10
|
1
|
|
|
1
|
|
73
|
use constant REGEXP_KEYS => qw(URI HTTP); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
78
|
|
11
|
1
|
|
|
|
|
136
|
use constant KEEP_KEYS => qw( |
12
|
|
|
|
|
|
|
URI scheme host port abspath_full abspath_full_no_slash |
13
|
|
|
|
|
|
|
abspath_no_query query |
14
|
1
|
|
|
1
|
|
5
|
); |
|
1
|
|
|
|
|
2
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub flags { |
17
|
4
|
|
|
4
|
1
|
12706
|
my $self = shift; |
18
|
4
|
|
|
|
|
28
|
my @flags = $self->SUPER::flags(@_); |
19
|
4
|
100
|
|
|
|
82
|
push @flags => sprintf("-scheme => '%s'", $self->scheme) if $self->scheme; |
20
|
4
|
|
|
|
|
62
|
@flags; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |