struct

MartenThrottle::Rule

Inherits Struct < Value < Object

A per-route throttle policy. Stored in Marten.settings.throttle.rules and matched in declaration order against incoming requests.

Constructors

new(name : String, matcher : Matcher, limit : Int32, window : Time::Span, strategy : StrategyName = Strategy::FixedWindow, methods : Array(String) | Nil = nil, identifier : Settings::ClientIdentifier | Nil = nil)
Source

Instance methods

identifier
Source
limit
Source
matcher
Source
matches?(request : Marten::HTTP::Request) : Bool
Source
methods
Source
name
Source
strategy
Source
window
Source

Nested types