WWW-PGXN

 view release on metacpan or  search on metacpan

lib/WWW/PGXN.pm  view on Meta::CPAN

use WWW::PGXN::Mirror;
use HTTP::Tiny;
use URI::Template;
use JSON ();
use Carp;

our $VERSION = v0.13.0;

sub new {
    my($class, %params) = @_;
    my $self = bless {} => $class;
    for my $key (qw(url proxy)) {
        $self->$key($params{$key}) if exists $params{$key}
    }
    return $self;
}

sub get_distribution {
    my ($self, $dist, $version) = @_;
    my $data = $self->_fetch_json(
        (defined $version ? 'meta' : 'dist'),

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.418 second using v1.00-cache-2.02-grep-82fe00e-cpan-cec75d87357c )