package Net::CheckHost;
use strict;
use warnings;
our $VERSION = 0.05;
use JSON;
use LWP::UserAgent;
use URI;
sub new {
my ($class, @args) = @_;
bless {
gateway => 'https://chec
gin::CheckHost v' . $VERSION,
'Content-Type' => 'application/json',
'Accept' => 'application/json',
]
);
}
sub request {
my $self = shift;
my $http_
($http_response->status_line)
unless $http_response->is_success;
my $response = decode_json($http_response->decoded_content);
if ($response->{error}) {
my $error = $response->{