Class: RateLimitGenerator
Generates rate limit policies from metadata and transport defaults.
Implements
Generator<RateLimitDefinition|undefined>
Constructors
Constructor
new RateLimitGenerator():
RateLimitGenerator
Returns
RateLimitGenerator
Methods
generate()
generate(
context):RateLimitDefinition|undefined
Generates the policy for the current method, class, or transport.
Parameters
context
Returns
RateLimitDefinition | undefined
Implementation of
registerRateLimit()
staticregisterRateLimit(transport,options?):void
Registers the default rate limit policy for one transport.
Parameters
transport
options?
Returns
void