| blib/lib/Mojo/Message/Request.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 45 | 55 | 81.8 |
| line | l | !l | condition | |
|---|---|---|---|---|
| 185 | 0 | 33 | 0 | $base->scheme($1) and $self->version($2) |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 72 | 88 | 122 | 840 | ($headers->content_length // "") eq 0 and $self->method eq "GET" |
| 79 | 1044 | 0 | 6 | my $info = $url->userinfo and not $headers->authorization |
| 84 | 1034 | 2 | 14 | my $proxy = $self->proxy and $self->via_proxy |
| 131 | 34 | 67 | 1056 | not $base->host and my $host = $headers->host |
| 141 | 1144 | 6 | 7 | $self->reverse_proxy and ($headers->header("X-Forwarded-Proto") // "") eq "https" |
| 150 | 2300 | 0 | 14 | $_[0] && $_[0] =~ /Basic (.+)$/u |
| 220 | 1032 | 2 | 9 | $self->proxy and $self->via_proxy |
| 1034 | 1 | 8 | $self->proxy and $self->via_proxy and $url->protocol ne "https" |
| line | l | !l | condition |
|---|---|---|---|
| 72 | 1047 | 3 | $headers->content_length // "" |
| 76 | 1011 | 1 | $url->host_port // "" |
| 96 | 402 | 4647 | $_[0]->headers->upgrade // "" |
| 103 | 1 | 1 | (shift())->headers->header("X-Requested-With") // "" |
| 116 | 436 | 1129 | $self->{'state'} // "" |
| 141 | 7 | 6 | $headers->header("X-Forwarded-Proto") // "" |
| 185 | 33 | 0 | $env->{'SERVER_PROTOCOL'} // "" |
| 188 | 2 | 31 | $env->{'HTTPS'} // "" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 43 | 1 | 163 | 13 | $headers->cookie || () |
| 100 | 0 | 3 | 0 | $url->protocol || $url->base->protocol |
| 107 | 423 | 313 | 0 | $_[0]{'params'} ||= $_[0]->body_params->clone->append($_[0]->query_params) |
| 221 | 3 | 0 | 0 | $url->port // ($url->protocol eq "https" ? 443 : 80) |