Skip to content

Commit

Permalink
docs: update compress url (eggjs#4415)
Browse files Browse the repository at this point in the history
  • Loading branch information
huruji authored Aug 13, 2020
1 parent 333d7b8 commit 5097628
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/en/intro/egg-and-koa.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The middleware in Koa is different from Express, Koa use the onion model:

All the requests will be executed twice during one middleware. Compared to Express middleware, it is very easy to implement post-processing logic. You can obviously feel the advantage of Koa middleware model by comparing the compress middleware implementing in Koa and Express.

- [koa-compress](https://github.com/koajs/compress/blob/master/index.js) for Koa.
- [koa-compress](https://github.com/koajs/compress/blob/master/lib/index.js) for Koa.
- [compression](https://github.com/expressjs/compression/blob/master/index.js) for Express.

### Context
Expand Down
2 changes: 1 addition & 1 deletion docs/source/zh-cn/intro/egg-and-koa.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Koa 的中间件和 Express 不同,Koa 选择了洋葱圈模型。

所有的请求经过一个中间件的时候都会执行两次,对比 Express 形式的中间件,Koa 的模型可以非常方便的实现后置处理逻辑,对比 Koa 和 Express 的 Compress 中间件就可以明显的感受到 Koa 中间件模型的优势。

- [koa-compress](https://github.com/koajs/compress/blob/master/index.js) for Koa.
- [koa-compress](https://github.com/koajs/compress/blob/master/lib/index.js) for Koa.
- [compression](https://github.com/expressjs/compression/blob/master/index.js) for Express.

### Context
Expand Down

0 comments on commit 5097628

Please sign in to comment.