Package-level declarations

Types

Link copied to clipboard

A config for the RateLimit plugin.

Link copied to clipboard
interface RateLimiter

An interface for rate limiters.

Link copied to clipboard
value class RateLimitName(name: String)

A name of registered RateLimit provider.

Link copied to clipboard

A config for RateLimit provider inside RateLimiterConfig.

Link copied to clipboard

A rate-limited route node that is used by the RateLimit plugin and usually created by the Route.rateLimit DSL function, so generally there is no need to instantiate it directly unless you are writing an extension.

Properties

Link copied to clipboard

A plugin that provides rate limiting for incoming requests.

Functions

Link copied to clipboard
fun Route.rateLimit(configuration: RateLimitName = LIMITER_NAME_EMPTY, build: Route.() -> Unit): Route

Creates a route with Rate-Limit rules applied to it. This function accepts name of RateLimit providers defined in the RateLimit plugin configuration.