| 1 | package Kubernetes::REST::HTTPResponse; | ||
| 2 | 97 | our $VERSION = '1.113'; | |
| 3 | # ABSTRACT: HTTP response object | ||
| 4 | 97 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 97 | ▶ | use Types::Standard qw/Str Int HashRef ArrayRef/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | |||
| 8 | 97 | has content => (is => 'ro', isa => Str); | |
| 9 | |||
| 10 | |||
| 11 | 97 | has status => (is => 'ro', isa => Int); | |
| 12 | |||
| 13 | |||
| 14 | # The response headers, keyed by lowercased name, each an arrayref of that | ||
| 15 | # header's values in the order they came - a repeated Warning header gives | ||
| 16 | # several (karr k79). Optional: a backend that does not fill it gives none. | ||
| 17 | 92 | ▶ | has headers => (is => 'ro', isa => HashRef[ArrayRef[Str]], default => sub { {} }); |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | |||
| 20 | 97 | 1; | |
| 21 | |||
| 22 | __END__ | ||