RateLimiterModule

ratelimiter. RateLimiterModule

Module for rate-limiting access to the API

Constructor

new RateLimiterModule()

Source:

Extends

  • AbstractModule

Members

rateLimiter :external:RateLimiterFlexible

Description:
  • Reference to the rate limiter instance
Source:
Reference to the rate limiter instance
Type:
  • external:RateLimiterFlexible

Methods

(async) init()

Source:

middleware() → {function}

Description:
  • Limits the number of requests that can be made to the API
Source:
Returns:
An Express.js request handler
Type
function