rateLimit

fun Routing.rateLimit(configuration: RateLimitName = LIMITER_NAME_EMPTY, build: Routing.() -> Unit): Routing

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

Parameters

configuration

names of RateLimit providers defined in the RateLimit plugin configuration.

See also

Throws

if there are no registered providers referred by configuration names.