The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

POE::Component::Client::HTTPDeferred::Deferred - Deferred class for POE::Component::Client::HTTPDeferred.

SEE ALSO

POE::Component::Client::HTTPDeferred.

METHOD

new

    my $d = POE::Component::Client::HTTPDeferred::Deferred->new;

Create deferred object.

cancel

    $d->cancel;

Cancel HTTP Request.

callback

    $d->callback($response);

An normal response callback method. This is called when http request is successful.

errback

    $d->errback($response);

An error response callback. This is called when http request is failed.

addBoth

    $d->addBoth($callback);

Add $callback to both callback and errback.

This is same as following:

    $d->addCallbacks($callback, $callback);

addCallback

    $d->addCallback($callback);

Add $callback to normal callback.

addCallbacks

    $d->addCallbacks( $callback, $errback );

Add $callback to normal callback, and $errback to error callback.

addErrback

    $d->addErrback( $errback );

Add $errback to error callback.

AUTHOR

Daisuke Murase <typester@cpan.org>

COPYRIGHT

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.