| 1 | package Catalyst::TraitFor::Request::DecodedParams; | ||
| 2 | |||
| 3 | 2 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | our $VERSION = '0.02'; | |
| 7 | |||
| 8 | 2 | requires qw/_build_params_decoder _do_decode_params/; | |
| 9 | |||
| 10 | 2 | has '_params_decoder' => ( | |
| 11 | init_arg => undef, is => 'ro', | ||
| 12 | lazy => 1, builder => '_build_params_decoder', | ||
| 13 | ); | ||
| 14 | |||
| 15 | 2 | has decoded_params => ( | |
| 16 | init_arg => undef, isa => 'HashRef', | ||
| 17 | is => 'ro', lazy => 1, builder => '_build_decoded_params', | ||
| 18 | ); | ||
| 19 | |||
| 20 | 2 | ▶ | sub _build_decoded_params { |
|
Subroutine
_build_decoded_params: called CC=1 SCAR=0.0
| |||
| 21 | 2 | my $self = shift; | |
| 22 | 2 | return $self->_do_decode_params($self->params); | |
| 23 | } | ||
| 24 | |||
| 25 | 2 | ▶ | sub decoded_parameters { return shift->decoded_params } |
|
Subroutine
decoded_parameters: called CC=1 SCAR=0.0
Pod
documented
| |||
| 26 | |||
| 27 | 4 | ▶ | sub dparams { return shift->decoded_params } |
|
Subroutine
dparams: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 28 | |||
| 29 | 2 | has decoded_query_params => ( | |
| 30 | init_arg => undef, isa => 'HashRef', | ||
| 31 | is => 'ro', lazy => 1, builder => '_build_decoded_query_params', | ||
| 32 | ); | ||
| 33 | |||
| 34 | 1 | ▶ | sub _build_decoded_query_params { |
|
Subroutine
_build_decoded_query_params: called CC=1 SCAR=0.0
| |||
| 35 | 1 | my $self = shift; | |
| 36 | 1 | return $self->_do_decode_params($self->query_params); | |
| 37 | } | ||
| 38 | |||
| 39 | 0 | ▶ | sub decoded_query_parameters { return shift->decoded_query_params } |
|
Subroutine
decoded_query_parameters: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 40 | |||
| 41 | 1 | ▶ | sub dquery_params { return shift->decoded_query_params } |
|
Subroutine
dquery_params: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 42 | |||
| 43 | 2 | has decoded_body_params => ( | |
| 44 | init_arg => undef, isa => 'HashRef', | ||
| 45 | is => 'ro', lazy => 1, builder => '_build_decoded_body_params', | ||
| 46 | ); | ||
| 47 | |||
| 48 | 1 | ▶ | sub _build_decoded_body_params { |
|
Subroutine
_build_decoded_body_params: called CC=1 SCAR=0.0
| |||
| 49 | 1 | my $self = shift; | |
| 50 | 1 | return $self->_do_decode_params($self->body_params); | |
| 51 | } | ||
| 52 | |||
| 53 | 0 | ▶ | sub decoded_body_parameters { return shift->decoded_body_params } |
|
Subroutine
decoded_body_parameters: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 54 | |||
| 55 | 1 | ▶ | sub dbody_params { return shift->decoded_body_params } |
|
Subroutine
dbody_params: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 56 | |||
| 57 | 2 | 1; | |
| 58 | |||
| 59 | __END__ | ||