Станислав Пусеп > AnyEvent-Net-Curl-Queued > AnyEvent::Net::Curl::Const

Download:
AnyEvent-Net-Curl-Queued-0.047.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.047   Source  

NAME ^

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

VERSION ^

version 0.047

SYNOPSIS ^

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

WARNING: GONE MOO! ^

This module isn't using Any::Moose anymore due to the announced deprecation status of that module. The switch to the Moo is known to break modules that do extend 'AnyEvent::Net::Curl::Queued::Easy' / extend 'YADA::Worker'! To keep the compatibility, make sure that you are using MooseX::NonMoose:

    package YourSubclassingModule;
    use Moose;
    use MooseX::NonMoose;
    extends 'AnyEvent::Net::Curl::Queued::Easy';
    ...

Or MouseX::NonMoose:

    package YourSubclassingModule;
    use Mouse;
    use MouseX::NonMoose;
    extends 'AnyEvent::Net::Curl::Queued::Easy';
    ...

Or the Any::Moose equivalent:

    package YourSubclassingModule;
    use Any::Moose;
    use Any::Moose qw(X::NonMoose);
    extends 'AnyEvent::Net::Curl::Queued::Easy';
    ...

However, the recommended approach is to switch your subclassing module to Moo altogether (you can use MooX::late to smoothen the transition):

    package YourSubclassingModule;
    use Moo;
    use MooX::late;
    extends 'AnyEvent::Net::Curl::Queued::Easy';
    ...

DESCRIPTION ^

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

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) 2014 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.

syntax highlighting: