RateLimits

data class RateLimits(var period: Long = 0, var rate: Long = 0)

A class containing the configuration of constraints for incoming requests.

Constructors

Link copied to clipboard
constructor(period: Long = 0, rate: Long = 0)

Properties

Link copied to clipboard

The period for which requests will be regulated. (in milliseconds)

Link copied to clipboard
var rate: Long

The number of allowed requests for the specified period.