CloudFlare-Client
view release on metacpan or search on metacpan
lib/CloudFlare/Client.pm view on Meta::CPAN
# override user specified
tkn => $self->_key,
email => $self->_user,
a => $act,});
# Handle connection errors
CloudFlare::Client::Exception::Connection::->throw(
status => $res->status_line,
message => 'HTTPS request failed',)
unless $res->is_success;
# Handle errors from CF
Readonly my $info => decode_json($res->decoded_content);
CloudFlare::Client::Exception::Upstream::->throw(
errorCode => $info->{err_code},
message => $info->{msg},)
unless $info->{result} eq 'success';
return $info->{response};}
# all API calls are implemented through autoloading, the action is the method
method AUTOLOAD {
our $AUTOLOAD;
( run in 0.778 second using v1.01-cache-2.11-cpan-26ccb49234f )