| line |
true |
false |
branch |
|
59
|
6 |
1 |
unless ($hdrs->user_agent) |
|
63
|
0 |
6 |
if ($uri->can('userinfo') and $uri->userinfo and not $hdrs->authorization) |
|
66
|
6 |
1 |
if ($uri->scheme) |
|
71
|
18 |
3 |
unless exists $$opts{$_} |
|
76
|
1 |
6 |
if ($$opts{'request_timeout'}) |
|
107
|
1 |
6 |
if $prev |
|
110
|
0 |
7 |
if (defined $$hdrs{'HTTPVersion'}) |
|
113
|
0 |
7 |
if (my $cookies = $$hdrs{'set-cookie'}) |
|
120
|
2 |
5 |
if (keys %$hdrs) |
|
123
|
3 |
0 |
if ($res->code >= 590 and $res->code <= 599 and $res->message) |
|
124
|
0 |
3 |
if ($res->message eq 'Connection timed out') |
|
127
|
3 |
0 |
unless ($res->header('client-warning')) |
|
131
|
4 |
3 |
if (defined $body) |
|
138
|
2 |
5 |
if ($code == 301 or $code == 302 or $code == 303 or $code == 307 or $code == 308) { } |
|
149
|
1 |
1 |
defined $count ? : |
|
|
1 |
1 |
unless (defined $count ? $count : ($count = $$opts{'max_redirects'})) |
|
161
|
0 |
1 |
if ($code == 302 || $code == 303 and not $meth eq 'GET' || $meth eq 'HEAD') |
|
171
|
1 |
0 |
defined $uri ? : |
|
174
|
0 |
1 |
if ($proto eq 'https' and $uri->scheme eq 'http') |