class Limiter

Direct Known Subclasses

Defined in:

limiter.cr

Constant Summary

VERSION = "0.4"

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add_limit(seconds : Time::Span, count) #

[View source]
def clear #

[View source]
def request!(force = false, &) #

request with limits, raised if request is not possible


[View source]
def request?(force = false, &) #

request with limits, return nil if request is not possible


[View source]