| 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; | |