DataFlow-Proc-URLRetriever
view release on metacpan or search on metacpan
lib/DataFlow/Proc/URLRetriever.pm view on Meta::CPAN
sub _build_p {
my $self = shift;
return sub {
my $url =
$self->has_baseurl
? URI->new_abs( $_, $self->baseurl )->as_string
: $_;
return $self->ua->get($url)->decoded_content;
# TODO allow ArrayRef's instead of Str, and use the other elements
# as parameters for the get() method
};
}
__PACKAGE__->meta->make_immutable;
1;
( run in 0.251 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )