Перейти к содержимому
Русский

rateLimit

Это содержимое пока не доступно на вашем языке.

rateLimit(opts): (handler) => (req) => Promise<HttpResponse>

Defined in: src/http/cache/RateLimit.ts:69

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.

RateLimitOptions

(handler) => (req) => Promise<HttpResponse>