blib/lib/Mojo/Message/Request.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 43 | 53 | 81.1 |
line | l | !l | condition | |
---|---|---|---|---|
182 | 0 | 32 | 0 | $base->scheme($1) and $self->version($2) |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
72 | 87 | 106 | 790 | ($headers->content_length // "") eq 0 and $self->method eq "GET" |
79 | 977 | 0 | 6 | my $info = $url->userinfo and not $headers->authorization |
84 | 967 | 2 | 14 | my $proxy = $self->proxy and $self->via_proxy |
128 | 32 | 67 | 990 | not $base->host and my $host = $headers->host |
138 | 1076 | 6 | 7 | $self->reverse_proxy and ($headers->header("X-Forwarded-Proto") // "") eq "https" |
147 | 2164 | 0 | 14 | $_[0] && $_[0] =~ /Basic (.+)$/u |
217 | 966 | 2 | 9 | $self->proxy and $self->via_proxy |
968 | 1 | 8 | $self->proxy and $self->via_proxy and $url->protocol ne "https" |
line | l | !l | condition |
---|---|---|---|
72 | 980 | 3 | $headers->content_length // "" |
96 | 338 | 4411 | $_[0]->headers->upgrade // "" |
103 | 1 | 1 | (shift())->headers->header("X-Requested-With") // "" |
116 | 447 | 1063 | $self->{'state'} // "" |
138 | 7 | 6 | $headers->header("X-Forwarded-Proto") // "" |
182 | 32 | 0 | $env->{'SERVER_PROTOCOL'} // "" |
185 | 2 | 30 | $env->{'HTTPS'} // "" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
43 | 1 | 211 | 13 | $headers->cookie || () |
100 | 0 | 3 | 0 | $url->protocol || $url->base->protocol |
107 | 421 | 314 | 0 | $_[0]{'params'} ||= $_[0]->body_params->clone->append($_[0]->query_params) |
218 | 3 | 0 | 0 | $url->port // ($url->protocol eq "https" ? 443 : 80) |