rateLimit
이 콘텐츠는 아직 번역되지 않았습니다.
rateLimit(
options): (handler) => (request) =>Promise<HttpResponse>
Defined in: src/http/cache/RateLimit.ts:53
Build a rate-limiter higher-order handler. The returned function wraps a normal handler and returns a new one with rate-limit checks in front. Accepts a plain options object or the fluent RateLimitOptions builder.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”(handler) => (request) => Promise<HttpResponse>
