RateLimitOptionsValidator
このコンテンツはまだ日本語訳がありません。
Defined in: src/http/cache/RateLimitOptions.ts:92
Validates resolved RateLimitOptionsType settings: the rolling
window (windowMs) must be a positive finite number of milliseconds and
the per-window cap (max) a positive integer. (Presence of cache /
key is a required-field concern, not a domain-validity one.)
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RateLimitOptionsValidator():
RateLimitOptionsValidator
Defined in: src/http/cache/RateLimitOptions.ts:93
Returns
Section titled “Returns”RateLimitOptionsValidator
Overrides
Section titled “Overrides”OptionsValidator<RateLimitOptionsType>.constructor
Methods
Section titled “Methods”validate()
Section titled “validate()”validate(
settings):void
Defined in: src/util/OptionsValidator.ts:75
Check the (merged) settings; throws OptionsError on the first
violation. Unset (undefined) fields always pass.
Parameters
Section titled “Parameters”settings
Section titled “settings”Partial<T>
Returns
Section titled “Returns”void
