line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::Router::Match; |
2
|
|
|
|
|
|
|
|
3
|
19
|
|
|
19
|
|
111
|
use strict; |
|
19
|
|
|
|
|
38
|
|
|
19
|
|
|
|
|
732
|
|
4
|
19
|
|
|
19
|
|
95
|
use warnings; |
|
19
|
|
|
|
|
39
|
|
|
19
|
|
|
|
|
523
|
|
5
|
19
|
|
|
19
|
|
99
|
use base 'Class::Accessor::Fast'; |
|
19
|
|
|
|
|
35
|
|
|
19
|
|
|
|
|
1471
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw'params captures route'); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
88
|
|
|
88
|
1
|
368
|
my ($class, %args) = @_; |
11
|
88
|
|
|
|
|
1016
|
return bless { |
12
|
|
|
|
|
|
|
params => {}, |
13
|
|
|
|
|
|
|
captures => {}, |
14
|
|
|
|
|
|
|
%args, |
15
|
|
|
|
|
|
|
}, $class; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub uri_for { |
19
|
0
|
|
|
0
|
1
|
|
my ($self, @args) = @_; |
20
|
0
|
|
|
|
|
|
$self->route->uri_for(@args); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 NAME |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
HTTP::Router::Match - Matched Object Representation for HTTP::Router |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 METHODS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head2 uri_for($args?) |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Returns a route path which is processed with parameters. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 PROPERTIES |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head2 params |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Route parameters which was matched. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head2 captures |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Captured variable parameters which was matched. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head2 route |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
L object which was matched. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 AUTHOR |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
NAKAGAWA Masaki Emasaki@cpan.orgE |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 LICENSE |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
56
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 SEE ALSO |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
L, L |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |