blib/lib/Paws/Net/APIResponse.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 2 totaltotal 90.0% 18 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
header
1.0
CRAP 1.0
« lib/Paws/Net/NoSignature.pm ↑ Summary blib/lib/Paws/API.pm »
1 package Paws::Net::APIResponse;
2 20 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 20 ▶ use HTTP::Headers;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 20 has status => (is => 'rw', isa => 'Int', required => 1);
6 20 has headers => (is => 'rw', isa => 'HashRef', required => 1);
7 20 has content => (is => 'rw', isa => 'Str|Undef');
8  
9 72 ▶ sub header {
Subroutine header: called CC=1 SCAR=0.0
Pod undocumented
10 72 my ($self, $header) = @_;
11 72 return $self->headers->{ $header };
12 }
13  
14 156 ▶ sub has_header {
Subroutine has_header: called CC=1 SCAR=0.0
Pod undocumented
15 156 my ($self, $header) = @_;
16 156 return defined $self->headers->{ $header };
17 }
18  
19 20 1;
« lib/Paws/Net/NoSignature.pm ↑ Summary blib/lib/Paws/API.pm »