1. 首页
  2. 数据库
  3. 其它
  4. cov rate limit:用于Express和Koa的轻量级Rate limiter中间件。 用于将重复请求限制为公共API 源码

cov rate limit:用于Express和Koa的轻量级Rate limiter中间件。 用于将重复请求限制为公共API 源码

上传者: 2021-02-09 07:05:38上传 ZIP文件 7.04KB 热度 14次
最高限速 用于Express和Koa的轻量级速率限制器中间件。 用于将重复请求限制为公共API。 安装 $ npm install --save cov-rate-limit 例 考阿 const Koa = require ( 'koa' ) const RateLimit = require ( 'cov-rate-limit' ) const app = new Koa ( ) const rateLimiter = RateLimit ( { type : 'koa' , max : 100 , duration : 1000 * 60 * 10 , k
下载地址
用户评论