摘要:
模拟express中间件 const http = require('http') const slice = Array.prototype.slice class LikeExpress { constructor() { // 存放中间件的列表 this.routes = { all: [], 阅读全文
posted @ 2019-03-29 17:28
_senjer
阅读(188)
评论(0)
推荐(0)
摘要:
http mysql pm2 pm2.conf.json package.json redis stream 阅读全文
posted @ 2019-03-29 16:58
_senjer
阅读(189)
评论(0)
推荐(0)
摘要:
一、什么是Koa的中间件: 通俗的讲:中间件就是匹配路由之前或者匹配路由完成做的一系列的操作,我们就可以把它叫做中间件。 在express中间件(Middleware) 是一个函数,它可以访问请求对象(request object (req)), 响应对象(response object (res) 阅读全文
posted @ 2019-03-29 16:06
_senjer
阅读(2089)
评论(0)
推荐(1)

浙公网安备 33010602011771号