Plack::Middleware::Throttle::Hourly - A Plack Middleware for rate-limiting
incoming HTTP requests.
my $handler = builder {
enable "Throttle::Hourly",
max => 2,
backend => Plack::Middleware::Throttle::Backend::Hash->new();
sub { [ '200', [ 'Content-Type' => 'text/html' ], ['hello world'] ] };
};
How many request an host can do in one hour.
- max
- How many requets can be done in one hour.
franck cuny <franck@lumberjaph.net>
This library is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.