| 1 | package Catalyst::View::Text::MicroTemplate::_PerRequest; | ||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use HTTP::Status; | ||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use Scalar::Util; | ||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||
| 5 | 1 | ▶ | use Catalyst::Utils; | ||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||||||
| 7 | 41 | ▶ | sub data { | ||||||||||||||||||||||||||||||
|
Subroutine
data: called CC=6 SCAR=18.3
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 8 | 41 | my ($self, $data) = @_; | |||||||||||||||||||||||||||||||
| 9 | 41 | ▶ | if($data) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 10 | 3 | ▶ | if($self->{data}) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 11 | 0 | die "Can't set view data attribute if its already set"; | |||||||||||||||||||||||||||||||
| 12 | } else { | ||||||||||||||||||||||||||||||||
| 13 | 3 | ▶ | $data = $self->{ctx}->model($data) unless ref $data; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 14 | 3 | return $self->{data} = $data; | |||||||||||||||||||||||||||||||
| 15 | } | ||||||||||||||||||||||||||||||||
| 16 | } else { | ||||||||||||||||||||||||||||||||
| 17 | 38 | ▶ | return $self->{data} ||= do { | ||||||||||||||||||||||||||||||
|
Condition66%2/3
$self->{"data"} ||= do {
my $default_view_model = $self->{"parent"}->default_view_model;
$default_view_model = $self->{"ctx"}->model($default_view_model) unless ref $default_view_model;
$default_view_model
}
MC/DC0%0/2
$self->{"data"} ||= do {
my $default_view_model = $self->{"parent"}->default_view_model;
$default_view_model = $self->{"ctx"}->model($default_view_model) unless ref $default_view_model;
$default_view_model
}
$self->{"data"}
do {
my $default_view_model = $self->{"parent"}->default_view_model;
$default_view_model = $self->{"ctx"}->model($default_view_model) unless ref $default_view_model;
$default_view_model
}
Truth table66%2/3
A ||= B
A= $self->{"data"}B= do {
my $default_view_model = $self->{"parent"}->default_view_model;
$default_view_model = $self->{"ctx"}->model($default_view_model) unless ref $default_view_model;
$default_view_model
}
| |||||||||||||||||||||||||||||||||
| 18 | 5 | my $default_view_model = $self->{parent}->default_view_model; | |||||||||||||||||||||||||||||||
| 19 | 5 | ▶ | $default_view_model = $self->{ctx}->model($default_view_model) | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 20 | unless ref $default_view_model; | ||||||||||||||||||||||||||||||||
| 21 | 5 | $default_view_model; | |||||||||||||||||||||||||||||||
| 22 | }; | ||||||||||||||||||||||||||||||||
| 23 | } | ||||||||||||||||||||||||||||||||
| 24 | } | ||||||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||||||
| 26 | 3 | ▶ | sub handle_process_error { | ||||||||||||||||||||||||||||||
|
Subroutine
handle_process_error: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 27 | 3 | my ($self, $value) = @_; | |||||||||||||||||||||||||||||||
| 28 | 3 | ▶ | if(defined $value) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 29 | 1 | $self->{handle_process_error} = $value; | |||||||||||||||||||||||||||||||
| 30 | } | ||||||||||||||||||||||||||||||||
| 31 | 3 | return $self->{handle_process_error}; | |||||||||||||||||||||||||||||||
| 32 | } | ||||||||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||||||
| 34 | 11 | ▶ | sub template { | ||||||||||||||||||||||||||||||
|
Subroutine
template: called CC=5 SCAR=17.5
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 35 | 11 | my ($self, $value) = @_; | |||||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||||||
| 37 | 11 | ▶ | if(defined $value) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 38 | 2 | ▶ | if( | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
builtin::blessed($value) and $value->isa("Catalyst::Action")
MC/DC0%0/2
builtin::blessed($value) and $value->isa("Catalyst::Action")
builtin::blessed($value)
$value->isa("Catalyst::Action")
Truth table33%1/3
A and B
A= builtin::blessed($value)B= $value->isa("Catalyst::Action")
| |||||||||||||||||||||||||||||||||
| 39 | Scalar::Util::blessed($value) && | ||||||||||||||||||||||||||||||||
| 40 | $value->isa('Catalyst::Action') | ||||||||||||||||||||||||||||||||
| 41 | ) { | ||||||||||||||||||||||||||||||||
| 42 | 0 | $value = "$value"; | |||||||||||||||||||||||||||||||
| 43 | } | ||||||||||||||||||||||||||||||||
| 44 | 2 | $self->{template} = $value; | |||||||||||||||||||||||||||||||
| 45 | } | ||||||||||||||||||||||||||||||||
| 46 | 11 | ▶ | return $self->{template} || $self->template_factory; | ||||||||||||||||||||||||||||||
|
Condition66%2/3
$self->{'template'} || $self->template_factory
MC/DC0%0/2
$self->{'template'} || $self->template_factory
$self->{'template'}
$self->template_factory
Truth table66%2/3
A || B
A= $self->{'template'}B= $self->template_factory
| |||||||||||||||||||||||||||||||||
| 47 | } | ||||||||||||||||||||||||||||||||
| 48 | |||||||||||||||||||||||||||||||||
| 49 | 8 | ▶ | sub template_factory { | ||||||||||||||||||||||||||||||
|
Subroutine
template_factory: called CC=4 SCAR=13.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 50 | 8 | my $self = shift; | |||||||||||||||||||||||||||||||
| 51 | |||||||||||||||||||||||||||||||||
| 52 | 8 | ▶ | if(defined $_[0]) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 53 | 1 | ▶ | die 'The value must be a subroutine reference' | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 54 | unless ref($_[0]) eq 'CODE'; | ||||||||||||||||||||||||||||||||
| 55 | 1 | $self->{template_factory} = $_[0]; | |||||||||||||||||||||||||||||||
| 56 | } | ||||||||||||||||||||||||||||||||
| 57 | |||||||||||||||||||||||||||||||||
| 58 | 8 | ▶ | unless(exists $self->{template_factory}) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 59 | 5 | $self->{template_factory} = $self->{parent}->default_template_factory; | |||||||||||||||||||||||||||||||
| 60 | } | ||||||||||||||||||||||||||||||||
| 61 | |||||||||||||||||||||||||||||||||
| 62 | 8 | return $self->{template_factory}->($self, $self->{ctx}); | |||||||||||||||||||||||||||||||
| 63 | } | ||||||||||||||||||||||||||||||||
| 64 | |||||||||||||||||||||||||||||||||
| 65 | 0 | ▶ | sub res { return shift->response(@_) } | ||||||||||||||||||||||||||||||
|
Subroutine
res: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 66 | 8 | ▶ | sub response { | ||||||||||||||||||||||||||||||
|
Subroutine
response: called CC=17 SCAR=32.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 67 | 8 | my ($self, @proto) = @_; | |||||||||||||||||||||||||||||||
| 68 | 8 | my ($status, @headers) = (); | |||||||||||||||||||||||||||||||
| 69 | |||||||||||||||||||||||||||||||||
| 70 | 8 | ▶ | if( (ref \$proto[0] eq 'SCALAR') and | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
ref \$proto[0] eq "SCALAR" and &Scalar::Util::looks_like_number($proto[0])
MC/DC0%0/2
ref \$proto[0] eq "SCALAR" and &Scalar::Util::looks_like_number($proto[0])
ref \$proto[0] eq "SCALAR"
&Scalar::Util::looks_like_number($proto[0])
Truth table33%1/3
A and B
A= ref \$proto[0] eq "SCALAR"B= &Scalar::Util::looks_like_number($proto[0])
| |||||||||||||||||||||||||||||||||
| 71 | Scalar::Util::looks_like_number($proto[0]) | ||||||||||||||||||||||||||||||||
| 72 | ){ | ||||||||||||||||||||||||||||||||
| 73 | 8 | $status = shift @proto; | |||||||||||||||||||||||||||||||
| 74 | } else { | ||||||||||||||||||||||||||||||||
| 75 | 0 | $status = 200; | |||||||||||||||||||||||||||||||
| 76 | } | ||||||||||||||||||||||||||||||||
| 77 | |||||||||||||||||||||||||||||||||
| 78 | 8 | ▶ | if( | ||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition66%2/3
scalar @proto and ref $proto[$#proto] eq "HASH"
MC/DC50%1/2
scalar @proto and ref $proto[$#proto] eq "HASH"
scalar @proto
ref $proto[$#proto] eq "HASH"
Truth table66%2/3
A and B
A= scalar @protoB= ref $proto[$#proto] eq "HASH"
| |||||||||||||||||||||||||||||||||
| 79 | scalar(@proto) && | ||||||||||||||||||||||||||||||||
| 80 | ref $proto[$#proto] eq 'HASH' | ||||||||||||||||||||||||||||||||
| 81 | ) { | ||||||||||||||||||||||||||||||||
| 82 | 6 | my $var = pop @proto; | |||||||||||||||||||||||||||||||
| 83 | 6 | foreach my $key (keys %$var) { | |||||||||||||||||||||||||||||||
| 84 | 11 | $self->data->$key($var->{$key}); | |||||||||||||||||||||||||||||||
| 85 | } | ||||||||||||||||||||||||||||||||
| 86 | ▶ | } elsif( | |||||||||||||||||||||||||||||||
|
Condition33%1/3
scalar @proto and builtin::blessed($proto[$#proto])
MC/DC0%0/2
scalar @proto and builtin::blessed($proto[$#proto])
scalar @proto
builtin::blessed($proto[$#proto])
Truth table33%1/3
A and B
A= scalar @protoB= builtin::blessed($proto[$#proto])
| |||||||||||||||||||||||||||||||||
| 87 | scalar(@proto) && | ||||||||||||||||||||||||||||||||
| 88 | Scalar::Util::blessed($proto[$#proto]) | ||||||||||||||||||||||||||||||||
| 89 | ) { | ||||||||||||||||||||||||||||||||
| 90 | 2 | my $obj = pop @proto; | |||||||||||||||||||||||||||||||
| 91 | 2 | $self->data($obj); | |||||||||||||||||||||||||||||||
| 92 | } | ||||||||||||||||||||||||||||||||
| 93 | |||||||||||||||||||||||||||||||||
| 94 | 8 | ▶ | if(@proto) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 95 | 0 | @headers = @proto; | |||||||||||||||||||||||||||||||
| 96 | } | ||||||||||||||||||||||||||||||||
| 97 | |||||||||||||||||||||||||||||||||
| 98 | 8 | ▶ | if($self->{ctx}->debug) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 99 | 0 | my $name = Catalyst::Utils::class2classsuffix($self->{parent}->catalyst_component_name); | |||||||||||||||||||||||||||||||
| 100 | 0 | $self->{ctx}->stats->profile(begin => "=> ${name}->response($status)") | |||||||||||||||||||||||||||||||
| 101 | } | ||||||||||||||||||||||||||||||||
| 102 | |||||||||||||||||||||||||||||||||
| 103 | 8 | my $res = $self->{ctx}->response; | |||||||||||||||||||||||||||||||
| 104 | 8 | ▶ | $res->headers->push_header(@headers) if @headers; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 105 | 8 | ▶ | $res->status($status) unless $res->status != 200; # Catalyst default is 200... | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 106 | 8 | ▶ | $res->content_type($self->{parent}->content_type) unless $res->content_type; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 107 | |||||||||||||||||||||||||||||||||
| 108 | 8 | my $out; | |||||||||||||||||||||||||||||||
| 109 | MT: { | ||||||||||||||||||||||||||||||||
| 110 | # Localize this so we don't clobber the global | ||||||||||||||||||||||||||||||||
| 111 | 8 | local $self->{mt}->{template_args}; | |||||||||||||||||||||||||||||||
| 112 | # Allow the data model to provide named args | ||||||||||||||||||||||||||||||||
| 113 | 8 | ▶ | my %args = $self->data->can('TO_HASH') ? $self->data->TO_HASH : (); | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 114 | # Allow the view object to provide named args as well | ||||||||||||||||||||||||||||||||
| 115 | 8 | ▶ | if(my $extra_cb = $self->{parent}->can('extra_template_args')) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 116 | 0 | %args = ($extra_cb->($self->{parent}, $self, $self->{ctx}), %args); | |||||||||||||||||||||||||||||||
| 117 | } | ||||||||||||||||||||||||||||||||
| 118 | # Merge stash args if requested | ||||||||||||||||||||||||||||||||
| 119 | 8 | ▶ | if($self->{parent}->merge_stash) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 120 | 0 | %args = (%args, %{$self->{ctx}->stash}); | |||||||||||||||||||||||||||||||
| 121 | } | ||||||||||||||||||||||||||||||||
| 122 | |||||||||||||||||||||||||||||||||
| 123 | 8 | $self->{mt}->template_args({ c => $self->{ctx}, %args}); | |||||||||||||||||||||||||||||||
| 124 | 8 | $out = $self->render($self->template, $self->data); | |||||||||||||||||||||||||||||||
| 125 | } | ||||||||||||||||||||||||||||||||
| 126 | |||||||||||||||||||||||||||||||||
| 127 | 6 | ▶ | $res->body($out) unless $res->has_body; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 128 | } | ||||||||||||||||||||||||||||||||
| 129 | |||||||||||||||||||||||||||||||||
| 130 | 8 | ▶ | sub render { | ||||||||||||||||||||||||||||||
|
Subroutine
render: called CC=6 SCAR=20.2
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 131 | 8 | my ($self, $template, @data) = @_; | |||||||||||||||||||||||||||||||
| 132 | my $out = eval { | ||||||||||||||||||||||||||||||||
| 133 | 8 | $self->{mt}->render($template, @data); | |||||||||||||||||||||||||||||||
| 134 | 8 | ▶ | } || do { | ||||||||||||||||||||||||||||||
|
Condition66%2/3
eval {
do {
$self->{'mt'}->render($template, @data)
}
} || do {
$self->{'ctx'}->log->error("Can't render template '${template}', $@") if $self->{'ctx'}->debug;
if (my $cb = $self->handle_process_error) {
delete $self->{'data'};
delete $self->{'handle_process_error'};
$self->{'ctx'}->log->info('Invoking process error callback') if $self->{'ctx'}->debug;
return &$cb($self, $@);
}
else {
$self->{'ctx'}->log->info(q[Rethrowing template error since there's no 'handle_process_error' defined]) if $self->{'ctx'}->debug;
die $@;
}
}
MC/DC0%0/2
eval {
do {
$self->{'mt'}->render($template, @data)
}
} || do {
$self->{'ctx'}->log->error("Can't render template '${template}', $@") if $self->{'ctx'}->debug;
if (my $cb = $self->handle_process_error) {
delete $self->{'data'};
delete $self->{'handle_process_error'};
$self->{'ctx'}->log->info('Invoking process error callback') if $self->{'ctx'}->debug;
return &$cb($self, $@);
}
else {
$self->{'ctx'}->log->info(q[Rethrowing template error since there's no 'handle_process_error' defined]) if $self->{'ctx'}->debug;
die $@;
}
}
eval {
do {
$self->{'mt'}->render($template, @data)
}
}
do {
$self->{'ctx'}->log->error("Can't render template '${template}', $@") if $self->{'ctx'}->debug;
if (my $cb = $self->handle_process_error) {
delete $self->{'data'};
delete $self->{'handle_process_error'};
$self->{'ctx'}->log->info('Invoking process error callback') if $self->{'ctx'}->debug;
return &$cb($self, $@);
}
else {
$self->{'ctx'}->log->info(q[Rethrowing template error since there's no 'handle_process_error' defined]) if $self->{'ctx'}->debug;
die $@;
}
}
Truth table66%2/3
A || B
A= eval {
do {
$self->{'mt'}->render($template, @data)
}
}B= do {
$self->{'ctx'}->log->error("Can't render template '${template}', $@") if $self->{'ctx'}->debug;
if (my $cb = $self->handle_process_error) {
delete $self->{'data'};
delete $self->{'handle_process_error'};
$self->{'ctx'}->log->info('Invoking process error callback') if $self->{'ctx'}->debug;
return &$cb($self, $@);
}
else {
$self->{'ctx'}->log->info(q[Rethrowing template error since there's no 'handle_process_error' defined]) if $self->{'ctx'}->debug;
die $@;
}
}
| |||||||||||||||||||||||||||||||||
| 135 | 2 | ▶ | $self->{ctx}->log->error("Can't render template '$template', $@") if $self->{ctx}->debug; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 136 | 2 | ▶ | if(my $cb = $self->handle_process_error) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 137 | 2 | delete $self->{data}; # Clear out any existing data since its not valid | |||||||||||||||||||||||||||||||
| 138 | 2 | delete $self->{handle_process_error}; # Avoid recursion if your error handler is iself bad | |||||||||||||||||||||||||||||||
| 139 | 2 | ▶ | $self->{ctx}->log->info("Invoking process error callback") if $self->{ctx}->debug; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 140 | 2 | return $cb->($self, $@); | |||||||||||||||||||||||||||||||
| 141 | } else { | ||||||||||||||||||||||||||||||||
| 142 | # Bubble up the unhandled error | ||||||||||||||||||||||||||||||||
| 143 | $self->{ctx}->log->info("Rethrowing template error since there's no 'handle_process_error' defined") | ||||||||||||||||||||||||||||||||
| 144 | 0 | ▶ | if $self->{ctx}->debug; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 145 | 0 | die $@; | |||||||||||||||||||||||||||||||
| 146 | } | ||||||||||||||||||||||||||||||||
| 147 | }; | ||||||||||||||||||||||||||||||||
| 148 | |||||||||||||||||||||||||||||||||
| 149 | 6 | return $out; | |||||||||||||||||||||||||||||||
| 150 | } | ||||||||||||||||||||||||||||||||
| 151 | |||||||||||||||||||||||||||||||||
| 152 | 0 | ▶ | sub process { | ||||||||||||||||||||||||||||||
|
Subroutine
process: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 153 | 0 | my ( $self, $c ) = @_; | |||||||||||||||||||||||||||||||
| 154 | 0 | $self->response; | |||||||||||||||||||||||||||||||
| 155 | } | ||||||||||||||||||||||||||||||||
| 156 | |||||||||||||||||||||||||||||||||
| 157 | # Send Helpers. | ||||||||||||||||||||||||||||||||
| 158 | 1 | foreach my $helper( grep { $_=~/^http/i} @HTTP::Status::EXPORT_OK) { | |||||||||||||||||||||||||||||||
| 159 | 71 | my $subname = lc $helper; | |||||||||||||||||||||||||||||||
| 160 | 71 | $subname =~s/http_//i; | |||||||||||||||||||||||||||||||
| 161 | 0 | ▶ | eval "sub $subname { return shift->response(HTTP::Status::$helper,\@_) }"; | ||||||||||||||||||||||||||||||
|
Subroutine
accepted: not called CC=1 SCAR=6.1
Subroutine
already_reported: not called CC=1 SCAR=6.1
Subroutine
bad_gateway: not called CC=1 SCAR=6.1
Subroutine
bad_request: called CC=1 SCAR=6.1
Subroutine
bandwidth_limit_exceeded: not called CC=1 SCAR=6.1
Subroutine
conflict: not called CC=1 SCAR=6.1
Subroutine
content_too_large: not called CC=1 SCAR=6.1
Subroutine
continue: not called CC=1 SCAR=6.1
Subroutine
created: called CC=1 SCAR=6.1
Subroutine
early_hints: not called CC=1 SCAR=6.1
Subroutine
expectation_failed: not called CC=1 SCAR=6.1
Subroutine
failed_dependency: not called CC=1 SCAR=6.1
Subroutine
forbidden: not called CC=1 SCAR=6.1
Subroutine
found: not called CC=1 SCAR=6.1
Subroutine
gateway_timeout: not called CC=1 SCAR=6.1
Subroutine
gone: not called CC=1 SCAR=6.1
Subroutine
http_version_not_supported: not called CC=1 SCAR=6.1
Subroutine
i_am_a_teapot: not called CC=1 SCAR=6.1
Subroutine
im_used: not called CC=1 SCAR=6.1
Subroutine
insufficient_storage: not called CC=1 SCAR=6.1
Subroutine
internal_server_error: not called CC=1 SCAR=6.1
Subroutine
length_required: not called CC=1 SCAR=6.1
Subroutine
locked: not called CC=1 SCAR=6.1
Subroutine
loop_detected: not called CC=1 SCAR=6.1
Subroutine
method_not_allowed: not called CC=1 SCAR=6.1
Subroutine
misdirected_request: not called CC=1 SCAR=6.1
Subroutine
moved_permanently: not called CC=1 SCAR=6.1
Subroutine
multi_status: not called CC=1 SCAR=6.1
Subroutine
multiple_choices: not called CC=1 SCAR=6.1
Subroutine
network_authentication_required: not called CC=1 SCAR=6.1
Subroutine
no_code: not called CC=1 SCAR=6.1
Subroutine
no_content: not called CC=1 SCAR=6.1
Subroutine
non_authoritative_information: not called CC=1 SCAR=6.1
Subroutine
not_acceptable: not called CC=1 SCAR=6.1
Subroutine
not_extended: not called CC=1 SCAR=6.1
Subroutine
not_found: not called CC=1 SCAR=6.1
Subroutine
not_implemented: not called CC=1 SCAR=6.1
Subroutine
not_modified: not called CC=1 SCAR=6.1
Subroutine
ok: called CC=1 SCAR=6.1
Subroutine
partial_content: not called CC=1 SCAR=6.1
Subroutine
payload_too_large: not called CC=1 SCAR=6.1
Subroutine
payment_required: not called CC=1 SCAR=6.1
Subroutine
permanent_redirect: not called CC=1 SCAR=6.1
Subroutine
precondition_failed: not called CC=1 SCAR=6.1
Subroutine
precondition_required: not called CC=1 SCAR=6.1
Subroutine
processing: not called CC=1 SCAR=6.1
Subroutine
proxy_authentication_required: not called CC=1 SCAR=6.1
Subroutine
range_not_satisfiable: not called CC=1 SCAR=6.1
Subroutine
request_entity_too_large: not called CC=1 SCAR=6.1
Subroutine
request_header_fields_too_large: not called CC=1 SCAR=6.1
Subroutine
request_range_not_satisfiable: not called CC=1 SCAR=6.1
Subroutine
request_timeout: not called CC=1 SCAR=6.1
Subroutine
request_uri_too_large: not called CC=1 SCAR=6.1
Subroutine
reset_content: not called CC=1 SCAR=6.1
Subroutine
retry_with: not called CC=1 SCAR=6.1
Subroutine
see_other: not called CC=1 SCAR=6.1
Subroutine
service_unavailable: not called CC=1 SCAR=6.1
Subroutine
switching_protocols: not called CC=1 SCAR=6.1
Subroutine
temporary_redirect: not called CC=1 SCAR=6.1
Subroutine
too_early: not called CC=1 SCAR=6.1
Subroutine
too_many_requests: not called CC=1 SCAR=6.1
Subroutine
unauthorized: not called CC=1 SCAR=6.1
Subroutine
unavailable_for_legal_reasons: not called CC=1 SCAR=6.1
Subroutine
unordered_collection: not called CC=1 SCAR=6.1
Subroutine
unprocessable_content: not called CC=1 SCAR=6.1
Subroutine
unprocessable_entity: not called CC=1 SCAR=6.1
Subroutine
unsupported_media_type: not called CC=1 SCAR=6.1
Subroutine
upgrade_required: not called CC=1 SCAR=6.1
Subroutine
uri_too_long: not called CC=1 SCAR=6.1
Subroutine
use_proxy: not called CC=1 SCAR=6.1
Subroutine
variant_also_negotiates: not called CC=1 SCAR=6.1
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 162 | 0 | ▶ | eval "sub detach_$subname { my \$self=shift; \$self->response(HTTP::Status::$helper,\@_); \$self->{ctx}->detach }"; | ||||||||||||||||||||||||||||||
|
Subroutine
detach_accepted: not called CC=1 SCAR=6.4
Subroutine
detach_already_reported: not called CC=1 SCAR=6.4
Subroutine
detach_bad_gateway: not called CC=1 SCAR=6.4
Subroutine
detach_bad_request: not called CC=1 SCAR=6.4
Subroutine
detach_bandwidth_limit_exceeded: not called CC=1 SCAR=6.4
Subroutine
detach_conflict: not called CC=1 SCAR=6.4
Subroutine
detach_content_too_large: not called CC=1 SCAR=6.4
Subroutine
detach_continue: not called CC=1 SCAR=6.4
Subroutine
detach_created: not called CC=1 SCAR=6.4
Subroutine
detach_early_hints: not called CC=1 SCAR=6.4
Subroutine
detach_expectation_failed: not called CC=1 SCAR=6.4
Subroutine
detach_failed_dependency: not called CC=1 SCAR=6.4
Subroutine
detach_forbidden: not called CC=1 SCAR=6.4
Subroutine
detach_found: not called CC=1 SCAR=6.4
Subroutine
detach_gateway_timeout: not called CC=1 SCAR=6.4
Subroutine
detach_gone: not called CC=1 SCAR=6.4
Subroutine
detach_http_version_not_supported: not called CC=1 SCAR=6.4
Subroutine
detach_i_am_a_teapot: not called CC=1 SCAR=6.4
Subroutine
detach_im_used: not called CC=1 SCAR=6.4
Subroutine
detach_insufficient_storage: not called CC=1 SCAR=6.4
Subroutine
detach_internal_server_error: called CC=1 SCAR=6.4
Subroutine
detach_length_required: not called CC=1 SCAR=6.4
Subroutine
detach_locked: not called CC=1 SCAR=6.4
Subroutine
detach_loop_detected: not called CC=1 SCAR=6.4
Subroutine
detach_method_not_allowed: not called CC=1 SCAR=6.4
Subroutine
detach_misdirected_request: not called CC=1 SCAR=6.4
Subroutine
detach_moved_permanently: not called CC=1 SCAR=6.4
Subroutine
detach_multi_status: not called CC=1 SCAR=6.4
Subroutine
detach_multiple_choices: not called CC=1 SCAR=6.4
Subroutine
detach_network_authentication_required: not called CC=1 SCAR=6.4
Subroutine
detach_no_code: not called CC=1 SCAR=6.4
Subroutine
detach_no_content: not called CC=1 SCAR=6.4
Subroutine
detach_non_authoritative_information: not called CC=1 SCAR=6.4
Subroutine
detach_not_acceptable: not called CC=1 SCAR=6.4
Subroutine
detach_not_extended: not called CC=1 SCAR=6.4
Subroutine
detach_not_found: not called CC=1 SCAR=6.4
Subroutine
detach_not_implemented: not called CC=1 SCAR=6.4
Subroutine
detach_not_modified: not called CC=1 SCAR=6.4
Subroutine
detach_ok: not called CC=1 SCAR=6.4
Subroutine
detach_partial_content: not called CC=1 SCAR=6.4
Subroutine
detach_payload_too_large: not called CC=1 SCAR=6.4
Subroutine
detach_payment_required: not called CC=1 SCAR=6.4
Subroutine
detach_permanent_redirect: not called CC=1 SCAR=6.4
Subroutine
detach_precondition_failed: not called CC=1 SCAR=6.4
Subroutine
detach_precondition_required: not called CC=1 SCAR=6.4
Subroutine
detach_processing: not called CC=1 SCAR=6.4
Subroutine
detach_proxy_authentication_required: not called CC=1 SCAR=6.4
Subroutine
detach_range_not_satisfiable: not called CC=1 SCAR=6.4
Subroutine
detach_request_entity_too_large: not called CC=1 SCAR=6.4
Subroutine
detach_request_header_fields_too_large: not called CC=1 SCAR=6.4
Subroutine
detach_request_range_not_satisfiable: not called CC=1 SCAR=6.4
Subroutine
detach_request_timeout: not called CC=1 SCAR=6.4
Subroutine
detach_request_uri_too_large: not called CC=1 SCAR=6.4
Subroutine
detach_reset_content: not called CC=1 SCAR=6.4
Subroutine
detach_retry_with: not called CC=1 SCAR=6.4
Subroutine
detach_see_other: not called CC=1 SCAR=6.4
Subroutine
detach_service_unavailable: called CC=1 SCAR=6.4
Subroutine
detach_switching_protocols: not called CC=1 SCAR=6.4
Subroutine
detach_temporary_redirect: not called CC=1 SCAR=6.4
Subroutine
detach_too_early: not called CC=1 SCAR=6.4
Subroutine
detach_too_many_requests: not called CC=1 SCAR=6.4
Subroutine
detach_unauthorized: not called CC=1 SCAR=6.4
Subroutine
detach_unavailable_for_legal_reasons: not called CC=1 SCAR=6.4
Subroutine
detach_unordered_collection: not called CC=1 SCAR=6.4
Subroutine
detach_unprocessable_content: not called CC=1 SCAR=6.4
Subroutine
detach_unprocessable_entity: not called CC=1 SCAR=6.4
Subroutine
detach_unsupported_media_type: not called CC=1 SCAR=6.4
Subroutine
detach_upgrade_required: not called CC=1 SCAR=6.4
Subroutine
detach_uri_too_long: not called CC=1 SCAR=6.4
Subroutine
detach_use_proxy: not called CC=1 SCAR=6.4
Subroutine
detach_variant_also_negotiates: not called CC=1 SCAR=6.4
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 163 | } | ||||||||||||||||||||||||||||||||
| 164 | |||||||||||||||||||||||||||||||||
| 165 | 1 | 1; | |||||||||||||||||||||||||||||||
| 166 | |||||||||||||||||||||||||||||||||
| 167 | =head1 NAME | ||||||||||||||||||||||||||||||||
| 168 | |||||||||||||||||||||||||||||||||
| 169 | Catalyst::View::Text::MicroTemplate::_PerRequest - Private object for Text::MicroTemplate views that own data | ||||||||||||||||||||||||||||||||
| 170 | |||||||||||||||||||||||||||||||||
| 171 | =head1 SYNOPSIS | ||||||||||||||||||||||||||||||||
| 172 | |||||||||||||||||||||||||||||||||
| 173 | No user servicable bits | ||||||||||||||||||||||||||||||||
| 174 | |||||||||||||||||||||||||||||||||
| 175 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||||||
| 176 | |||||||||||||||||||||||||||||||||
| 177 | See L<Catalyst::View::Text::MicroTemplate::PerRequest> for details. | ||||||||||||||||||||||||||||||||
| 178 | |||||||||||||||||||||||||||||||||
| 179 | =head1 SEE ALSO | ||||||||||||||||||||||||||||||||
| 180 | |||||||||||||||||||||||||||||||||
| 181 | L<Catalyst>, L<Catalyst::View>, L<Catalyst::View::Text::MicroTemplate::PerRequest>, | ||||||||||||||||||||||||||||||||
| 182 | L<HTTP::Status> | ||||||||||||||||||||||||||||||||
| 183 | |||||||||||||||||||||||||||||||||
| 184 | =head1 AUTHOR | ||||||||||||||||||||||||||||||||
| 185 | |||||||||||||||||||||||||||||||||
| 186 | John Napiorkowski L<email:jjnapiork@cpan.org> | ||||||||||||||||||||||||||||||||
| 187 | |||||||||||||||||||||||||||||||||
| 188 | =head1 COPYRIGHT & LICENSE | ||||||||||||||||||||||||||||||||
| 189 | |||||||||||||||||||||||||||||||||
| 190 | Copyright 2016, John Napiorkowski L<email:jjnapiork@cpan.org> | ||||||||||||||||||||||||||||||||
| 191 | |||||||||||||||||||||||||||||||||
| 192 | This library is free software; you can redistribute it and/or modify it under | ||||||||||||||||||||||||||||||||
| 193 | the same terms as Perl itself. | ||||||||||||||||||||||||||||||||
| 194 | |||||||||||||||||||||||||||||||||
| 195 | =cut | ||||||||||||||||||||||||||||||||