package Net::Docker;
use strict;
use 5.010;
our $VERSION = '0.002005';
use Moo;
use JSON;
use URI;
use URI::QueryParam;
use LWP::UserAgent;
use Carp;
use AnyEvent;
use AnyEvent::Socket 'tcp_connect';
tent_type eq 'application/json') {
return decode_json($res->decoded_content);
}
elsif ($res->content_type eq 'text/plain') {
return eval { decode_json($res->decoded_content) };
my ($self, $res) = @_;
if ($res->content_type eq 'application/json') {
my $json = JSON::XS->new;
return $json->incr_parse($res->decoded_content);
}
my $message = $res->d