| line |
true |
false |
branch |
|
117
|
2 |
1 |
if ($info) |
|
141
|
1 |
1 |
if ($$hdr{'Status'} == 200) |
|
143
|
0 |
1 |
unless defined $len |
|
153
|
0 |
1 |
if $len <= $self->block_size |
|
157
|
1 |
7 |
unless defined $block_task |
|
167
|
1 |
1 |
if ($self->on_body($first_task)->($partial_body, $hdr)) |
|
169
|
1 |
0 |
if ($$hdr{'content-length'} <= $self->block_size and $$first_task{'size'} == $$hdr{'content-length'} or $$first_task{'size'} >= $self->block_size) |
|
174
|
1 |
0 |
$self->digest ? : |
|
|
0 |
1 |
unless $self->on_block_finish->($hdr, $first_task, $self->digest ? $$first_task{'ctx'}->hexdigest : '') |
|
187
|
0 |
3 |
if $$hdr{'OrigStatus'} and $$hdr{'OrigStatus'} == 200 or $$hdr{'Status'} == 200 or $$hdr{'Status'} == 416 |
|
189
|
1 |
2 |
if ($status == 500 || $status == 503 || $status =~ /^59/ and $retry < $self->max_retries) |
|
201
|
2 |
0 |
$status ? : |
|
|
2 |
0 |
$$hdr{'Reason'} ? : |
|
219
|
1 |
8 |
unless $$hdr{'Status'} == 206 or $$hdr{'Status'} == 200 |
|
223
|
8 |
0 |
if ($$task{'size'} + $len > $self->block_size) |
|
232
|
8 |
0 |
if ($self->digest) |
|
267
|
7 |
0 |
if ($status == 200 or $status == 206) |
|
269
|
7 |
0 |
$self->digest ? : |
|
|
0 |
7 |
if $$task{'size'} != $$task{'tail'} - $$task{'ofs'} + 1 or not $self->on_block_finish->($hdl, $task, $self->digest ? $$task{'ctx'}->hexdigest : '') |
|
277
|
0 |
7 |
$block_task ? : |
|
282
|
0 |
0 |
$status ? : |
|
|
0 |
0 |
$$hdr{'Reason'} ? : |
|
294
|
0 |
0 |
if not $status =~ /^(59.|503|500|502|200|206|)$/ or $retry > $self->max_retries |
|
336
|
0 |
8 |
if ($length - 1 < $tail) |