class

Nous::Security::RateLimiter

Inherits Reference < Object

Constructors

new(max_requests_per_minute : Int32 = 60, burst_size : Int32 = 10, ban_duration : Time::Span = 60.minutes)
Source

Instance methods

allow?(identifier : String) : Bool
Source
cleanup
Source
reset(identifier : String) : Nil
Source