RateLimitConfig class
Rate limit configuration
- Annotations
-
- @immutable
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keyExtractor
→ String Function(Map<
String, dynamic> )? -
Optional custom key extractor for rate limiting
final
- maxRequests → int
-
Maximum number of requests per window
final
- perSession → bool
-
Whether to apply rate limit per session or globally
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- windowDuration → Duration
-
Time window duration
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultConfig → const RateLimitConfig
- Default rate limit: 100 requests per minute
- strict → const RateLimitConfig
- Strict rate limit: 10 requests per minute