line |
true |
false |
branch |
82
|
1 |
31 |
if ($http_request->body and $ct ne "application/json")
|
98
|
6 |
25 |
if $is_preflight
|
102
|
1 |
10 |
if ($allow_origin and $has_origin and not $allowed_origin)
|
125
|
5 |
25 |
$is_preflight ? :
|
134
|
14 |
45 |
if ($allow_origin and $is_preflight) { }
|
140
|
24 |
35 |
if $hm ne $check_for_method
|
147
|
29 |
6 |
if ($method_name =~ /^$route_match$/)
|
154
|
1 |
29 |
unless ($found_match)
|
155
|
1 |
0 |
if ($allow_origin and $is_preflight)
|
173
|
9 |
20 |
if ($allow_origin and $has_origin_header)
|
174
|
9 |
0 |
$allow_origin eq '*' ? :
|
178
|
4 |
25 |
if ($is_preflight)
|
183
|
0 |
4 |
if $http_request->header("Access-Control-Request-Headers")
|
193
|
6 |
19 |
$http_request->body ? :
|
222
|
8 |
17 |
$callback ? :
|
228
|
1 |
24 |
if ($error) { }
|
|
1 |
23 |
elsif (not &blessed($continue) && $continue->can('does') && $continue->does('Dancer2::RPCPlugin::CallbackResult')) { }
|
|
2 |
21 |
elsif (&blessed($continue) and not $continue->success) { }
|
277
|
3 |
18 |
if (my $error = $@)
|
278
|
1 |
2 |
&blessed($error) && $error->can('as_restish_error') ? :
|
288
|
1 |
20 |
if (&blessed($response) and $response->can('as_restish_error')) { }
|
|
1 |
19 |
elsif (&blessed($response)) { }
|
298
|
13 |
12 |
if ($dsl->config->{'encoding'} and $dsl->config->{'encoding'} =~ /^utf-?8$/i)
|
303
|
24 |
1 |
ref $response ? :
|
319
|
25 |
0 |
if $plugin->allow_origin
|