| 1 | package Docker::Registry::Response; | ||
| 2 | 6 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 6 | ▶ | use Types::Standard qw/Str Int HashRef/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 6 | ▶ | use HTTP::Headers; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 6 | has content => (is => 'ro', isa => Str); | |
| 7 | 6 | has status => (is => 'ro', isa => Int, required => 1); | |
| 8 | 6 | has headers => (is => 'rw', isa => HashRef, required => 1); | |
| 9 | |||
| 10 | 0 | ▶ | sub header { |
|
Subroutine
header: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 11 | 0 | my ($self, $header) = @_; | |
| 12 | 0 | return $self->headers->{ $header }; | |
| 13 | } | ||
| 14 | |||
| 15 | 6 | 1; | |