Monitoring-Icinga2-Client-REST
view release on metacpan or search on metacpan
lib/Monitoring/Icinga2/Client/REST.pm view on Meta::CPAN
"https://%s:%d%sv%d",
@$self{qw/ hostname port path version /}
);
$self->{ua} = LWP::UserAgent->new(
$insecure ? (
ssl_opts => {
# Don't verify certs with either SSL module used by LWP
verify_hostname => 0,
SSL_verify_callback => sub { 1 },
# Set ca_file for IO::Socket::SSL
defined $cafile ? ( SSL_ca_file => $cafile) : (),
},
) : (),
);
$self->{ua}->default_header( 'Accept' => 'application/json' );
$self->{login_status} = "not logged in";
return $self;
}
( run in 1.221 second using v1.01-cache-2.11-cpan-4d50c553e7e )