rateLimit

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.

See also

Parameters

configuration

names of RateLimit providers defined in the RateLimit plugin configuration.

Throws

if there are no registered providers referred by configuration names.