| line |
true |
false |
branch |
|
69
|
12 |
1 |
unless ($hdrs->user_agent) |
|
73
|
0 |
12 |
if ($uri->can("userinfo") and $uri->userinfo and not $hdrs->authorization) |
|
76
|
12 |
1 |
if ($uri->scheme) |
|
81
|
178 |
17 |
unless exists $opts->{$_} |
|
86
|
1 |
12 |
if ($opts->{'request_timeout'}) |
|
115
|
1 |
12 |
if $prev |
|
118
|
0 |
13 |
if (defined $hdrs->{'HTTPVersion'}) |
|
121
|
3 |
10 |
if (my $hdr = $hdrs->{'set-cookie'}) |
|
130
|
5 |
8 |
if (keys %$hdrs) |
|
133
|
3 |
0 |
if ($res->code >= 590 and $res->code <= 599 and $res->message) |
|
134
|
0 |
3 |
if ($res->message eq "Connection timed out") |
|
137
|
3 |
0 |
unless ($res->header("client-warning")) |
|
141
|
10 |
3 |
if (defined $body) |
|
148
|
2 |
11 |
if ($code == 301 or $code == 302 or $code == 303 or $code == 307 or $code == 308) { } |
|
159
|
1 |
1 |
defined $count ? : |
|
|
1 |
1 |
unless (defined $count ? $count : ($count = $opts->{'max_redirects'})) |
|
171
|
0 |
1 |
if ($code == 302 || $code == 303 and not $meth eq 'GET' || $meth eq 'HEAD') |
|
181
|
1 |
0 |
defined $uri ? : |
|
184
|
0 |
1 |
if ($proto eq "https" and $uri->scheme eq "http") |