Skip to content

throttler

applySettings

applySettings = ( _settings: ThrottlerSettings )

Changes Throttler's settings

Returns: ``


const Throttler

const Throttler = ( request: ILRequest, response: ILResponse, next: any )

Throttles incoming requests based on IP address. If the IP address has reached the request limit, it delays the request before passing it to the next middleware.

Parameters

Name Type Description
request any The incoming request object.
response any The outgoing response object.
next any The next middleware function.

Returns: ``