gs;
use POE::Component::Client::HTTP;
use HTTP::Request::Common;
use Algorithm::FloodControl;
use JSON::Any;
use Class::MOP;
use Module::Pluggable search_path => ['POE::Component::Github::Request'], e
ault => 'github.com/api/v2/json',
);
has _http_alias => (
is => 'rw',
isa => 'Str',
default => '',
);
has 'json' => (
is => 'ro',
isa => 'JSON::Any',
lazy => 1,
default => sub {
return JSON::Any->new;
}
);
has _requests => (
is => 'ro',
default => sub { { } },
);
has _shutdown => (
is => 'rw',
default => 0,
);
sub spawn {
shif