AnyEvent-YACurl
view release on metacpan or search on metacpan
{
"abstract" : "Yet Another curl binding for AnyEvent",
"author" : [
"Tom van der Woerdt <tvdw@cpan.org>"
],
"dynamic_config" : 1,
"generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
---
abstract: 'Yet Another curl binding for AnyEvent'
author:
- 'Tom van der Woerdt <tvdw@cpan.org>'
build_requires:
ExtUtils::MakeMaker: '0'
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
lib/AnyEvent/YACurl.pm view on Meta::CPAN
delete $TIMER{$$client};
_ae_timer_fired($client);
});
}
);
1;
=head1 NAME
AnyEvent::YACurl - Yet Another curl binding for AnyEvent
=head1 SYNOPSIS
use AnyEvent;
use AnyEvent::YACurl ':constants';
my $client = AnyEvent::YACurl->new({});
my $condvar = AnyEvent->condvar;
my $return_data = '';
$client->request($condvar, {
lib/AnyEvent/YACurl.pm view on Meta::CPAN
"My-Super-Awesome-Header: forty-two",
],
});
my ($response, $error) = $condvar->recv;
my $response_code = $response->getinfo(CURLINFO_RESPONSE_CODE);
print "Have response code $response_code. Body was $return_data";
=head1 DESCRIPTION
This module provides bindings to curl, integrated into AnyEvent.
=head1 METHODS
=head2 AnyEvent::YACurl
=over
=item C<new>
Returns a new C<AnyEvent::YACurl> object. This is essentially a binding over curl's
L<"multi" interface|https://curl.haxx.se/libcurl/c/libcurl-multi.html>.
Its first and only argument is a required hashref containing options to control behavior, such as
C<CURLMOPT_MAX_TOTAL_CONNECTIONS>. Refer to the actual
L<curl documentation|https://curl.haxx.se/libcurl/c/curl_multi_setopt.html> to find out about
other options to pass.
=item C<request>
Performs a request using the client instantiated via C<new>. Takes a callback and a hashref of
av_make|||
av_pop|||
av_push|||
av_reify|||
av_shift|||
av_store|||
av_undef|||
av_unshift|||
ax|||n
bad_type|||
bind_match|||
block_end|||
block_gimme||5.004000|
block_start|||
blockhook_register||5.013003|
boolSV|5.004000||p
boot_core_PerlIO|||
boot_core_UNIVERSAL|||
boot_core_mro|||
bytes_cmp_utf8||5.013007|
bytes_from_utf8||5.007001|
( run in 0.582 second using v1.01-cache-2.11-cpan-2398b32b56e )