RateLimit Module
Rate limiting module for Suave web server
Types
| Type | Description |
Functions and values
| Function or value | Description |
|
|
|
|
Full Usage:
getStats keyExtractor ctx
Parameters:
HttpContext -> string
ctx : HttpContext
Returns: Map<string, obj> option
|
|
Full Usage:
headerKeyExtractor headerName ctx
Parameters:
string
ctx : HttpContext
Returns: string
|
|
|
|
|
|
|
|
Full Usage:
rateLimit config protectedPart ctx
Parameters:
RateLimitConfig
protectedPart : WebPart
ctx : HttpContext
Returns: Async<HttpContext option>
|
|
|
|
Full Usage:
withKeyExtractor extractor config
Parameters:
HttpContext -> string
config : RateLimitConfig
Returns: RateLimitConfig
|
|
Full Usage:
withMessage message config
Parameters:
string
config : RateLimitConfig
Returns: RateLimitConfig
|
|
Full Usage:
withRetryAfter seconds config
Parameters:
int
config : RateLimitConfig
Returns: RateLimitConfig
|
|
Full Usage:
withStrategy strategy config
Parameters:
RateLimitStrategy
config : RateLimitConfig
Returns: RateLimitConfig
|