Group
Extension

Matches 2

Net-Graylog-Client ( J/JA/JALAVOY/Net-Graylog-Client-0.7.tar.gz, JALAVOY, 2017; MetaCPAN )
Net-Graylog-Client/lib/Net/Graylog/API.pm ( view source; MetaCPAN )
Graylog::API;
{
  $Net::Graylog::API::VERSION = '0.7';
}

use strict;
use warnings;
use Furl;
use JSON;
use Moo;
use URI::Escape::XS qw/uri_escape/;
use Data::Printer;
use namespace::clean;

# -------
           headers => [
                'Accept'       => 'application/json',
                'content-type' => 'application/json',
            ],
            timeout => $self->timeout,
        );
   
"url [$method] $url" if ( $ENV{DEBUG} );
    my $headers;    #= [ 'Content-type' => ['application/json'] ] ;
    my $res = $self->_furl->request(
        method  => uc($method),
        url     => $ur
Net-Graylog-Client ( J/JA/JALAVOY/Net-Graylog-Client-0.7.tar.gz, JALAVOY, 2017; MetaCPAN )
Net-Graylog-Client/lib/Net/Graylog/Client.pm ( view source; MetaCPAN )
;
}

use strict;
use warnings;
use POSIX qw(strftime);
use Data::Printer;
use Furl;
use JSON::Tiny qw(encode_json);
use Sys::Hostname;
use Data::UUID;
use POSIX qw(strftime);

# use Mo qw( default is 
     # headers => [
            #     'Accept'        => 'application/json',
            #     'content-type'  => 'application/json',
            # ],
            timeout => $self->timeout,
        );
   # }

    my $status = $self->_furl->post( $self->url, [ 'Content-Type' => 'application/json' ], encode_json( \%data ) );

    return ( $status->is_success, $status->code );
}

# -------------------

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.