Skip to main content
API Reference / modelence / server / consumeRateLimit
consumeRateLimit(options): Promise<void>
Defined in: packages/modelence/src/rate-limit/rules.ts:30 This function will check all rate limit rules on the specified bucket and type, throw an error if any of them are exceeded and increase the count of the rate limit record.

Example

Parameters

Returns

Promise<void>