| 1 | package Catalyst::View::JSON::_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 | |||||||||||||||||||||||||||||||||
| 6 | 42 | ▶ | sub data { | ||||||||||||||||||||||||||||||
|
Subroutine
data: called CC=6 SCAR=18.3
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 7 | 42 | my ($self, $data) = @_; | |||||||||||||||||||||||||||||||
| 8 | 42 | ▶ | if($data) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 9 | 4 | ▶ | if($self->{data}) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 10 | 0 | die "Can't set view data attribute if its already set"; | |||||||||||||||||||||||||||||||
| 11 | } else { | ||||||||||||||||||||||||||||||||
| 12 | 4 | ▶ | $data = $self->{ctx}->model($data) unless ref $data; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 13 | #die "Model $data does not do a required method 'TO_JSON'" | ||||||||||||||||||||||||||||||||
| 14 | # unless $data->can('TO_JSON'); | ||||||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||||||
| 16 | 4 | return $self->{data} = $data; | |||||||||||||||||||||||||||||||
| 17 | } | ||||||||||||||||||||||||||||||||
| 18 | } else { | ||||||||||||||||||||||||||||||||
| 19 | 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
}
| |||||||||||||||||||||||||||||||||
| 20 | 4 | my $default_view_model = $self->{parent}->default_view_model; | |||||||||||||||||||||||||||||||
| 21 | 4 | ▶ | $default_view_model = $self->{ctx}->model($default_view_model) | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 22 | unless ref $default_view_model; | ||||||||||||||||||||||||||||||||
| 23 | 4 | $default_view_model; | |||||||||||||||||||||||||||||||
| 24 | }; | ||||||||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||||||
| 26 | } | ||||||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||||||
| 28 | 3 | ▶ | sub handle_encode_error { | ||||||||||||||||||||||||||||||
|
Subroutine
handle_encode_error: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 29 | 3 | my ($self, $value) = @_; | |||||||||||||||||||||||||||||||
| 30 | 3 | ▶ | if(defined $value) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 31 | 1 | $self->{handle_encode_error} = $value; | |||||||||||||||||||||||||||||||
| 32 | } | ||||||||||||||||||||||||||||||||
| 33 | 3 | return $self->{handle_encode_error}; | |||||||||||||||||||||||||||||||
| 34 | } | ||||||||||||||||||||||||||||||||
| 35 | |||||||||||||||||||||||||||||||||
| 36 | 0 | ▶ | sub callback_param { | ||||||||||||||||||||||||||||||
|
Subroutine
callback_param: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 37 | 0 | my ($self, $value) = @_; | |||||||||||||||||||||||||||||||
| 38 | 0 | ▶ | if(defined $value) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 39 | 0 | $self->{callback_param} = $value; | |||||||||||||||||||||||||||||||
| 40 | } | ||||||||||||||||||||||||||||||||
| 41 | 0 | return $self->{callback_param}; | |||||||||||||||||||||||||||||||
| 42 | } | ||||||||||||||||||||||||||||||||
| 43 | |||||||||||||||||||||||||||||||||
| 44 | 0 | ▶ | sub res { return shift->response(@_) } | ||||||||||||||||||||||||||||||
|
Subroutine
res: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 45 | |||||||||||||||||||||||||||||||||
| 46 | 8 | ▶ | sub response { | ||||||||||||||||||||||||||||||
|
Subroutine
response: called CC=19 SCAR=37.7
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 47 | 8 | my ($self, @proto) = @_; | |||||||||||||||||||||||||||||||
| 48 | 8 | my ($status, @headers) = (); | |||||||||||||||||||||||||||||||
| 49 | |||||||||||||||||||||||||||||||||
| 50 | 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])
| |||||||||||||||||||||||||||||||||
| 51 | Scalar::Util::looks_like_number($proto[0]) | ||||||||||||||||||||||||||||||||
| 52 | ){ | ||||||||||||||||||||||||||||||||
| 53 | 8 | $status = shift @proto; | |||||||||||||||||||||||||||||||
| 54 | } else { | ||||||||||||||||||||||||||||||||
| 55 | 0 | $status = 200; | |||||||||||||||||||||||||||||||
| 56 | } | ||||||||||||||||||||||||||||||||
| 57 | |||||||||||||||||||||||||||||||||
| 58 | 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"
| |||||||||||||||||||||||||||||||||
| 59 | scalar(@proto) && | ||||||||||||||||||||||||||||||||
| 60 | ref $proto[$#proto] eq 'HASH' | ||||||||||||||||||||||||||||||||
| 61 | ) { | ||||||||||||||||||||||||||||||||
| 62 | 5 | my $var = pop @proto; | |||||||||||||||||||||||||||||||
| 63 | 5 | foreach my $key (keys %$var) { | |||||||||||||||||||||||||||||||
| 64 | 9 | ▶ | if($self->data->can('set')) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 65 | 9 | $self->data->set($key,$var->{$key}); | |||||||||||||||||||||||||||||||
| 66 | } else { | ||||||||||||||||||||||||||||||||
| 67 | 0 | $self->data->$key($var->{$key}); | |||||||||||||||||||||||||||||||
| 68 | } | ||||||||||||||||||||||||||||||||
| 69 | } | ||||||||||||||||||||||||||||||||
| 70 | ▶ | } 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])
| |||||||||||||||||||||||||||||||||
| 71 | scalar(@proto) && | ||||||||||||||||||||||||||||||||
| 72 | Scalar::Util::blessed($proto[$#proto]) | ||||||||||||||||||||||||||||||||
| 73 | ) { | ||||||||||||||||||||||||||||||||
| 74 | 3 | my $obj = pop @proto; | |||||||||||||||||||||||||||||||
| 75 | 3 | $self->data($obj); | |||||||||||||||||||||||||||||||
| 76 | } | ||||||||||||||||||||||||||||||||
| 77 | |||||||||||||||||||||||||||||||||
| 78 | 8 | ▶ | if(@proto) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 79 | 0 | @headers = @proto; | |||||||||||||||||||||||||||||||
| 80 | } | ||||||||||||||||||||||||||||||||
| 81 | |||||||||||||||||||||||||||||||||
| 82 | $self->{ctx}->stats->profile(begin => "=> JSON->send". ($status ? "($status)": '')) | ||||||||||||||||||||||||||||||||
| 83 | 8 | ▶ | if $self->{ctx}->debug; | ||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||
| 84 | |||||||||||||||||||||||||||||||||
| 85 | 8 | my $res = $self->{ctx}->response; | |||||||||||||||||||||||||||||||
| 86 | 8 | my $json = $self->render($self->data); | |||||||||||||||||||||||||||||||
| 87 | |||||||||||||||||||||||||||||||||
| 88 | 6 | ▶ | $res->headers->push_header(@headers) if @headers; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 89 | 6 | ▶ | $res->status($status) unless $res->status != 200; # Catalyst default is 200... | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 90 | 6 | ▶ | $res->content_type('application/json') unless $res->content_type; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 91 | |||||||||||||||||||||||||||||||||
| 92 | 6 | ▶ | if(my $param = $self->{callback_param}) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 93 | 0 | my $cb = $c->req->query_parameter($cbparam); | |||||||||||||||||||||||||||||||
| 94 | 0 | ▶ | $cb =~ /^[a-zA-Z0-9\.\_\[\]]+$/ || die "Invalid callback parameter $cb"; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 95 | 0 | $json = "$cb($json)"; | |||||||||||||||||||||||||||||||
| 96 | } | ||||||||||||||||||||||||||||||||
| 97 | |||||||||||||||||||||||||||||||||
| 98 | 6 | ▶ | $res->body($json) unless $res->has_body; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 99 | 6 | ▶ | return $self->{ctx}->detach if $self->{auto_detach}; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 100 | } | ||||||||||||||||||||||||||||||||
| 101 | |||||||||||||||||||||||||||||||||
| 102 | 8 | ▶ | sub render { | ||||||||||||||||||||||||||||||
|
Subroutine
render: called CC=3 SCAR=11.3
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 103 | 8 | my ($self, $data) = @_; | |||||||||||||||||||||||||||||||
| 104 | my $json = eval { | ||||||||||||||||||||||||||||||||
| 105 | 8 | $self->{json}->encode($self->data); | |||||||||||||||||||||||||||||||
| 106 | 8 | ▶ | } || do { | ||||||||||||||||||||||||||||||
|
Condition66%2/3
eval {
do {
$self->{'json'}->encode($self->data)
}
} || do {
if (my $cb = $self->handle_encode_error) {
delete $self->{'data'};
return &$cb($self, $@);
}
else {
die $@;
}
}
MC/DC0%0/2
eval {
do {
$self->{'json'}->encode($self->data)
}
} || do {
if (my $cb = $self->handle_encode_error) {
delete $self->{'data'};
return &$cb($self, $@);
}
else {
die $@;
}
}
eval {
do {
$self->{'json'}->encode($self->data)
}
}
do {
if (my $cb = $self->handle_encode_error) {
delete $self->{'data'};
return &$cb($self, $@);
}
else {
die $@;
}
}
Truth table66%2/3
A || B
A= eval {
do {
$self->{'json'}->encode($self->data)
}
}B= do {
if (my $cb = $self->handle_encode_error) {
delete $self->{'data'};
return &$cb($self, $@);
}
else {
die $@;
}
}
| |||||||||||||||||||||||||||||||||
| 107 | 2 | ▶ | if(my $cb = $self->handle_encode_error) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 108 | 2 | delete $self->{data}; # Clear out any existing data since its not valid | |||||||||||||||||||||||||||||||
| 109 | 2 | return $cb->($self, $@); | |||||||||||||||||||||||||||||||
| 110 | } else { | ||||||||||||||||||||||||||||||||
| 111 | # Bubble up the unhandled error | ||||||||||||||||||||||||||||||||
| 112 | 0 | die $@; | |||||||||||||||||||||||||||||||
| 113 | } | ||||||||||||||||||||||||||||||||
| 114 | }; | ||||||||||||||||||||||||||||||||
| 115 | 6 | return $json; | |||||||||||||||||||||||||||||||
| 116 | } | ||||||||||||||||||||||||||||||||
| 117 | |||||||||||||||||||||||||||||||||
| 118 | 0 | ▶ | sub process { | ||||||||||||||||||||||||||||||
|
Subroutine
process: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 119 | 0 | my ( $self, $c ) = @_; | |||||||||||||||||||||||||||||||
| 120 | 0 | $self->send; | |||||||||||||||||||||||||||||||
| 121 | } | ||||||||||||||||||||||||||||||||
| 122 | |||||||||||||||||||||||||||||||||
| 123 | # Send Helpers. | ||||||||||||||||||||||||||||||||
| 124 | 1 | foreach my $helper( grep { $_=~/^http/i} @HTTP::Status::EXPORT_OK) { | |||||||||||||||||||||||||||||||
| 125 | 71 | my $subname = lc $helper; | |||||||||||||||||||||||||||||||
| 126 | 71 | $subname =~s/http_//i; | |||||||||||||||||||||||||||||||
| 127 | 0 | ▶ | eval "sub $subname { return shift->response(HTTP::Status::$helper,\@_) }"; | ||||||||||||||||||||||||||||||
|
Subroutine
accepted: not called CC=1 SCAR=6.3
Subroutine
already_reported: not called CC=1 SCAR=6.3
Subroutine
bad_gateway: not called CC=1 SCAR=6.3
Subroutine
bad_request: not called CC=1 SCAR=6.3
Subroutine
bandwidth_limit_exceeded: not called CC=1 SCAR=6.3
Subroutine
conflict: not called CC=1 SCAR=6.3
Subroutine
content_too_large: not called CC=1 SCAR=6.3
Subroutine
continue: not called CC=1 SCAR=6.3
Subroutine
created: called CC=1 SCAR=6.3
Subroutine
early_hints: not called CC=1 SCAR=6.3
Subroutine
expectation_failed: not called CC=1 SCAR=6.3
Subroutine
failed_dependency: not called CC=1 SCAR=6.3
Subroutine
forbidden: not called CC=1 SCAR=6.3
Subroutine
found: not called CC=1 SCAR=6.3
Subroutine
gateway_timeout: not called CC=1 SCAR=6.3
Subroutine
gone: not called CC=1 SCAR=6.3
Subroutine
http_version_not_supported: not called CC=1 SCAR=6.3
Subroutine
i_am_a_teapot: not called CC=1 SCAR=6.3
Subroutine
im_used: not called CC=1 SCAR=6.3
Subroutine
insufficient_storage: not called CC=1 SCAR=6.3
Subroutine
internal_server_error: not called CC=1 SCAR=6.3
Subroutine
length_required: not called CC=1 SCAR=6.3
Subroutine
locked: not called CC=1 SCAR=6.3
Subroutine
loop_detected: not called CC=1 SCAR=6.3
Subroutine
method_not_allowed: not called CC=1 SCAR=6.3
Subroutine
misdirected_request: not called CC=1 SCAR=6.3
Subroutine
moved_permanently: not called CC=1 SCAR=6.3
Subroutine
multi_status: not called CC=1 SCAR=6.3
Subroutine
multiple_choices: not called CC=1 SCAR=6.3
Subroutine
network_authentication_required: not called CC=1 SCAR=6.3
Subroutine
no_code: not called CC=1 SCAR=6.3
Subroutine
no_content: not called CC=1 SCAR=6.3
Subroutine
non_authoritative_information: not called CC=1 SCAR=6.3
Subroutine
not_acceptable: not called CC=1 SCAR=6.3
Subroutine
not_extended: not called CC=1 SCAR=6.3
Subroutine
not_found: not called CC=1 SCAR=6.3
Subroutine
not_implemented: not called CC=1 SCAR=6.3
Subroutine
not_modified: not called CC=1 SCAR=6.3
Subroutine
ok: called CC=1 SCAR=6.3
Subroutine
partial_content: not called CC=1 SCAR=6.3
Subroutine
payload_too_large: not called CC=1 SCAR=6.3
Subroutine
payment_required: not called CC=1 SCAR=6.3
Subroutine
permanent_redirect: not called CC=1 SCAR=6.3
Subroutine
precondition_failed: not called CC=1 SCAR=6.3
Subroutine
precondition_required: not called CC=1 SCAR=6.3
Subroutine
processing: not called CC=1 SCAR=6.3
Subroutine
proxy_authentication_required: not called CC=1 SCAR=6.3
Subroutine
range_not_satisfiable: not called CC=1 SCAR=6.3
Subroutine
request_entity_too_large: not called CC=1 SCAR=6.3
Subroutine
request_header_fields_too_large: not called CC=1 SCAR=6.3
Subroutine
request_range_not_satisfiable: not called CC=1 SCAR=6.3
Subroutine
request_timeout: not called CC=1 SCAR=6.3
Subroutine
request_uri_too_large: not called CC=1 SCAR=6.3
Subroutine
reset_content: not called CC=1 SCAR=6.3
Subroutine
retry_with: not called CC=1 SCAR=6.3
Subroutine
see_other: not called CC=1 SCAR=6.3
Subroutine
service_unavailable: not called CC=1 SCAR=6.3
Subroutine
switching_protocols: not called CC=1 SCAR=6.3
Subroutine
temporary_redirect: not called CC=1 SCAR=6.3
Subroutine
too_early: not called CC=1 SCAR=6.3
Subroutine
too_many_requests: not called CC=1 SCAR=6.3
Subroutine
unauthorized: not called CC=1 SCAR=6.3
Subroutine
unavailable_for_legal_reasons: not called CC=1 SCAR=6.3
Subroutine
unordered_collection: not called CC=1 SCAR=6.3
Subroutine
unprocessable_content: not called CC=1 SCAR=6.3
Subroutine
unprocessable_entity: not called CC=1 SCAR=6.3
Subroutine
unsupported_media_type: not called CC=1 SCAR=6.3
Subroutine
upgrade_required: not called CC=1 SCAR=6.3
Subroutine
uri_too_long: not called CC=1 SCAR=6.3
Subroutine
use_proxy: not called CC=1 SCAR=6.3
Subroutine
variant_also_negotiates: not called CC=1 SCAR=6.3
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
| |||||||||||||||||||||||||||||||||
| 128 | 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
| |||||||||||||||||||||||||||||||||
| 129 | } | ||||||||||||||||||||||||||||||||
| 130 | |||||||||||||||||||||||||||||||||
| 131 | 1 | 1; | |||||||||||||||||||||||||||||||
| 132 | |||||||||||||||||||||||||||||||||
| 133 | =head1 NAME | ||||||||||||||||||||||||||||||||
| 134 | |||||||||||||||||||||||||||||||||
| 135 | Catalyst::View::JSON::_PerRequest - Private object for JSON views that own data | ||||||||||||||||||||||||||||||||
| 136 | |||||||||||||||||||||||||||||||||
| 137 | =head1 SYNOPSIS | ||||||||||||||||||||||||||||||||
| 138 | |||||||||||||||||||||||||||||||||
| 139 | No user servicable bits | ||||||||||||||||||||||||||||||||
| 140 | |||||||||||||||||||||||||||||||||
| 141 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||||||
| 142 | |||||||||||||||||||||||||||||||||
| 143 | See L<Catalyst::View::JSON::PerRequest> for details. | ||||||||||||||||||||||||||||||||
| 144 | |||||||||||||||||||||||||||||||||
| 145 | =head1 SEE ALSO | ||||||||||||||||||||||||||||||||
| 146 | |||||||||||||||||||||||||||||||||
| 147 | L<Catalyst>, L<Catalyst::View>, L<Catalyst::View::JSON::PerRequest>, | ||||||||||||||||||||||||||||||||
| 148 | L<HTTP::Status> | ||||||||||||||||||||||||||||||||
| 149 | |||||||||||||||||||||||||||||||||
| 150 | =head1 AUTHOR | ||||||||||||||||||||||||||||||||
| 151 | |||||||||||||||||||||||||||||||||
| 152 | John Napiorkowski L<email:jjnapiork@cpan.org> | ||||||||||||||||||||||||||||||||
| 153 | |||||||||||||||||||||||||||||||||
| 154 | =head1 COPYRIGHT & LICENSE | ||||||||||||||||||||||||||||||||
| 155 | |||||||||||||||||||||||||||||||||
| 156 | Copyright 2015, John Napiorkowski L<email:jjnapiork@cpan.org> | ||||||||||||||||||||||||||||||||
| 157 | |||||||||||||||||||||||||||||||||
| 158 | This library is free software; you can redistribute it and/or modify it under | ||||||||||||||||||||||||||||||||
| 159 | the same terms as Perl itself. | ||||||||||||||||||||||||||||||||
| 160 | |||||||||||||||||||||||||||||||||
| 161 | =cut | ||||||||||||||||||||||||||||||||