[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] RFC2: CGI::Application::Plugin::RateLimit


On Wed, 3 May 2006, Cees Hek wrote:

Nothing that is needed for a first version, but as an alternative to
'protected_modes' it might be nice to also allow that info to be
provided in an attribute.  It keeps the information close to where it
is actually applied:

sub send :RateLimit(max_hits=5, timeframe=10s) {
my $self = shift;
...
}

I guess I might take a patch providing that, but I'm not inclined to
code it myself.  I find attributes ugly and confusing.

-sam

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.