NAME

AnyEvent::Net::Curl::Const - Access Net::Curl::* constants by name

VERSION

version 0.041

SYNOPSIS

$easy->setopt(AnyEvent::Net::Curl::Const::opt('verbose'), 1);
...;
$easy->getinfo(AnyEvent::Net::Curl::Const::info('size_download'));

DESCRIPTION

Perl-friendly access to the libcurl constants. For example, you can access CURLOPT_TCP_NODELAY value by supplying any of:

  • 'Net::Curl::Easy::CURLOPT_TCP_NODELAY'

  • 'CURLOPT_TCP_NODELAY'

  • 'TCP_NODELAY'

  • 'TCP-NoDelay'

  • 'tcp_nodelay'

FUNCTIONS

info($constant_name)

Retrieve numeric value for $constant_name in CURLINFO namespace.

opt($constant_name)

Retrieve numeric value for $constant_name in CURLOPT namespace.

SEE ALSO

AUTHOR

Stanislaw Pusep <stas@sysd.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Stanislaw Pusep.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.