line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::ACME2::HTTP::Response; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
19
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
76
|
|
4
|
3
|
|
|
3
|
|
12
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
74
|
|
5
|
|
|
|
|
|
|
|
6
|
3
|
|
|
3
|
|
13
|
use parent qw( HTTP::Tiny::UA::Response ); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
14
|
|
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
187
|
use JSON (); |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
34
|
|
9
|
|
|
|
|
|
|
|
10
|
3
|
|
|
3
|
|
28
|
use Net::ACME2::X (); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
390
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub die_because_unexpected { |
13
|
0
|
|
|
0
|
0
|
0
|
my ($self) = @_; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
0
|
die Net::ACME2::X->create( |
16
|
|
|
|
|
|
|
'UnexpectedResponse', |
17
|
|
|
|
|
|
|
{ |
18
|
|
|
|
|
|
|
uri => $self->url(), |
19
|
|
|
|
|
|
|
status => $self->status(), |
20
|
|
|
|
|
|
|
reason => $self->reason(), |
21
|
|
|
|
|
|
|
headers => $self->headers(), |
22
|
|
|
|
|
|
|
}, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
#Useful for everything but certificate issuance, apparently? |
27
|
|
|
|
|
|
|
sub content_struct { |
28
|
30
|
|
|
30
|
0
|
1086
|
my ($self) = @_; |
29
|
|
|
|
|
|
|
|
30
|
30
|
|
33
|
|
|
387
|
my $json = ($self->{'_json'} ||= JSON->new()->allow_nonref()); |
31
|
|
|
|
|
|
|
|
32
|
30
|
|
|
|
|
561
|
return $json->decode( $self->content() ); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |