| 1 | 2 | ▶ | use 5.008; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | package Data::Semantic::URI::http; | ||||||||||
| 6 | 2 | our $VERSION = '1.100850'; | |||||||||
| 7 | # ABSTRACT: Semantic data class for http URIs | ||||||||||
| 8 | 2 | ▶ | use parent qw(Data::Semantic::URI); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 2 | __PACKAGE__->mk_scalar_accessors(qw(scheme)); | |||||||||
| 10 | 2 | ▶ | use constant REGEXP_KEYS => qw(URI HTTP); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 2 | ▶ | use constant KEEP_KEYS => qw( | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | URI scheme host port abspath_full abspath_full_no_slash | ||||||||||
| 13 | abspath_no_query query | ||||||||||
| 14 | 2 | ); | |||||||||
| 15 | |||||||||||
| 16 | 4 | ▶ | sub flags { | ||||||||
|
Subroutine
flags: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 17 | 4 | my $self = shift; | |||||||||
| 18 | 4 | my @flags = $self->SUPER::flags(@_); | |||||||||
| 19 | 4 | ▶ | push @flags => sprintf("-scheme => '%s'", $self->scheme) if $self->scheme; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 4 | @flags; | |||||||||
| 21 | } | ||||||||||
| 22 | 2 | 1; | |||||||||
| 23 | |||||||||||
| 24 | |||||||||||
| 25 | __END__ | ||||||||||