REST-Consumer

 view release on metacpan or  search on metacpan

lib/REST/Consumer/HandlerInvocation.pm  view on Meta::CPAN

use warnings;

use REST::Consumer::ResponseException;

# This is an object which is passed to a coderef in the handlers => {}
# hash. It represents an invocation of a particular response-code handler.
#
# Your code should never need to instantiate this class itself.
sub new {
	my ($class, %args) = @_;
	my $self = (bless {%args} => $class);
	$self->{debugger} ||= sub {};
	return $self;
}

# Here are elments of the public API:
# Magic values your code can return to change the execution flow:
sub default {
	my ($self) = @_;
	return REST::Consumer::HandlerFlow::Default->new;
}



( run in 0.250 second using v1.01-cache-2.11-cpan-65fba6d93b7 )