rateLimiter

fun rateLimiter(provider: (call: ApplicationCall, key: Any) -> RateLimiter)

Sets RateLimit for this provider based on ApplicationCall and key of this request.


fun rateLimiter(limit: Int, refillPeriod: Duration, initialSize: Int = limit, clock: () -> Long = { getTimeMillis() })

Sets RateLimit for this provider