| line |
true |
false |
branch |
|
42
|
0 |
614 |
if (@args == 1) |
|
57
|
0 |
1 |
unless $_[0]->env->{'X_FORWARDED_FOR'} |
|
62
|
0 |
19 |
setting('behind_proxy') ? : |
|
64
|
0 |
34 |
if (@_ == 2) { } |
|
68
|
5 |
29 |
if setting("behind_proxy") |
|
69
|
12 |
17 |
unless $host or $_[0]{'host'} |
|
78
|
0 |
1 |
unless $_[0]->env->{'REQUEST_BASE'} |
|
81
|
5 |
28 |
if (setting("behind_proxy")) |
|
120
|
566 |
52 |
unless $_[0]->env->{'psgi.input'} |
|
141
|
614 |
0 |
unless $self->path |
|
142
|
614 |
0 |
unless $self->path_info |
|
143
|
614 |
0 |
unless $self->method |
|
150
|
614 |
0 |
unless $self->uploads |
|
178
|
1 |
545 |
defined $body ? : |
|
|
546 |
28 |
unless exists $env->{'CONTENT_LENGTH'} |
|
184
|
0 |
574 |
defined $store_raw_body ? : |
|
185
|
574 |
0 |
if ($store_raw_body) |
|
205
|
2 |
14 |
if (exists $to_data->{'options'}{'method'}) |
|
206
|
0 |
2 |
unless _valid_method($to_data->{'options'}{'method'}) |
|
217
|
15 |
1 |
if (my $session = 'Dancer::Session'->engine && 'Dancer::Session'->get_current_session) |
|
225
|
15 |
0 |
unless ($new_request->{'env'}{'COOKIE'} =~ /$name\s*=/) |
|
246
|
0 |
16 |
unless ref $to_add eq "HASH" |
|
272
|
5 |
27 |
if (setting('behind_proxy')) { } |
|
288
|
2 |
1 |
if ($uri->path eq "/") |
|
305
|
20 |
6 |
if $params |
|
307
|
20 |
6 |
$dont_escape ? : |
|
315
|
289 |
147 |
unless ($self->{'_params_are_decoded'}) |
|
323
|
15 |
421 |
if wantarray and @_ == 1 |
|
324
|
402 |
19 |
if @_ == 1 |
|
326
|
4 |
15 |
if ($source eq 'query') { } |
|
|
15 |
0 |
elsif ($source eq 'body') { } |
|
327
|
2 |
2 |
if wantarray |
|
331
|
0 |
15 |
if wantarray |
|
334
|
0 |
0 |
if ($source eq 'route') { } |
|
335
|
0 |
0 |
if wantarray |
|
345
|
12 |
2529 |
unless defined $h |
|
347
|
622 |
28 |
unless (ref $h or utf8::is_utf8($h)) |
|
351
|
1796 |
111 |
if (ref $h eq "HASH") |
|
358
|
83 |
28 |
if (ref $h eq "ARRAY") |
|
370
|
0 |
617 |
if (defined $self->{'x_requested_with'}) |
|
371
|
0 |
0 |
if ($self->{'x_requested_with'} eq "XMLHttpRequest") |
|
376
|
613 |
4 |
unless defined $self->headers |
|
377
|
3 |
1 |
unless defined $self->header("X-Requested-With") |
|
378
|
0 |
1 |
if $self->header("X-Requested-With") ne "XMLHttpRequest" |
|
387
|
5 |
3 |
unless wantarray |
|
388
|
1 |
2 |
unless defined $res |
|
389
|
1 |
1 |
ref $res eq 'ARRAY' ? : |
|
447
|
47 |
2415 |
if ($self->is_forward) { } |
|
467
|
11 |
603 |
if defined $self->script_name |
|
468
|
607 |
7 |
if defined $self->env->{'PATH_INFO'} |
|
472
|
529 |
85 |
if (defined $self->request_uri) |
|
476
|
0 |
614 |
unless $path |
|
483
|
607 |
7 |
if (defined $info) { } |
|
510
|
1817 |
598 |
if defined $self->{'_body_params'} |
|
518
|
1848 |
614 |
if defined $self->{'_query_params'} |
|
524
|
0 |
40 |
unless defined $key |
|
525
|
40 |
0 |
defined $val ? : |
|
530
|
4 |
36 |
if (exists $self->{'_query_params'}{$key}) { } |
|
532
|
0 |
4 |
if (ref $prev_val and ref $prev_val eq 'ARRAY') { } |
|
551
|
566 |
32 |
unless $self->_has_something_to_read |
|
553
|
20 |
12 |
if ($self->content_length > 0) |
|
557
|
0 |
20 |
defined $store_raw_body ? : |
|
565
|
20 |
0 |
if ($store_raw_body) |
|
585
|
20 |
20 |
if $remaining <= 0 |
|
587
|
0 |
20 |
$remaining > $maxlength ? : |
|
593
|
20 |
0 |
if (defined $rc) { } |
|
611
|
2 |
7 |
ref $files eq 'ARRAY' ? : |
|
625
|
2 |
7 |
@uploads > 1 ? : |
|
629
|
2 |
7 |
@filenames > 1 ? : |