0.100;
use v5.16;
use warnings;
use Carp ();
use HTTP::Tiny 0.055;
use IO::Socket::SSL 1.42;
use JSON::PP ();
sub new {
my ($class, %args) = @_;
my $http = $args{http} || do {
my $ag
om,
};
my $body = JSON::PP::encode_json $payload;
my $res = $self->{http}->post($self->{url}, {
'content-type' => 'application/json',
'content-length' =
{content}";
}
my $json = JSON::PP::decode_json $res->{content};
my $total = $json->{hits}{total};
push @hit, map $_->{_source}, @{$json->{hits}{hits}};
last if