App-PAIA

 view release on metacpan or  search on metacpan

lib/App/PAIA/Agent.pm  view on Meta::CPAN


sub error {
    my ($self, %opts) = @_;
    return {        
        url     => $opts{url} // '',
        success => q{},
        status  => $opts{status} // '599',
        reason  => 'Internal Exception',
        content => $opts{msg},
        headers => {
            'content-type'   => 'text/plain',
            'content-length' => length $opts{msg},
        }
    };
}

sub dump {
    my ($self, $msg) = @_;
    #  say ":$msg";
    $self->{dumper}->($msg);
}



( run in 1.808 second using v1.01-cache-2.11-cpan-524268b4103 )