throttler

Entry point exports

Modules

ThrottlerModule

Classes

ThrottlerException

Throws a HttpException with a 429 status code, indicating that too many requests were being fired within a certain time window.

Structures

ThrottlerAsyncOptions
ThrottlerModuleOptions
ThrottlerOptionsFactory

Types

InjectThrottlerOptions

Sets the proper injection token for the THROTTLER_OPTIONS

InjectThrottlerStorage

Sets the proper injection token for the ThrottlerStorage

SkipThrottle

Adds metadata to the target which will be handled by the ThrottlerGuard whether or not to skip throttling for this context.

Throttle

Adds metadata to the target which will be handled by the ThrottlerGuard to handle incoming requests based on the given metadata.

getOptionsToken

A utility function for getting the options injection token

getStorageToken

A utility function for getting the storage injection token