POE::Component::Client::HTTPDeferred::Deferred - Deferred class for POE::Component::Client::HTTPDeferred.
POE::Component::Client::HTTPDeferred.
my $d = POE::Component::Client::HTTPDeferred::Deferred->new;
Create deferred object.
$d->cancel;
Cancel HTTP Request.
$d->callback($response);
An normal response callback method. This is called when http request is successful.
$d->errback($response);
An error response callback. This is called when http request is failed.
$d->addBoth($callback);
Add $callback to both callback and errback.
This is same as following:
$d->addCallbacks($callback, $callback);
$d->addCallback($callback);
Add $callback to normal callback.
$d->addCallbacks( $callback, $errback );
Add $callback to normal callback, and $errback to error callback.
$d->addErrback( $errback );
Add $errback to error callback.
Daisuke Murase <typester@cpan.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install POE::Component::Client::HTTPDeferred, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::Client::HTTPDeferred
CPAN shell
perl -MCPAN -e shell install POE::Component::Client::HTTPDeferred
For more information on module installation, please visit the detailed CPAN module installation guide.