Skip to content

Commit eedab36

Browse files
committed
docs: keq middleware image
1 parent b87d911 commit eedab36

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

docs/4.middleware/1.overview.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ NPM 上有很多这类库,如 [`fetch-retry`](https://www.npmjs.com/package/fe
1919

2020
## 洋葱模型
2121

22-
![Keq Middleware](/img/keq_middleware.png)
22+
import KeqMiddlewareImage from './assets/keq-middleware.png'
23+
24+
<img src={KeqMiddlewareImage} style={{ display: 'block', maxHeight: '500px', marginRight: 'auto', marginLeft: 'auto' }} alt="Keq Middleware" />
2325

2426
Keq 的中间件采用洋葱模型:请求从外层中间件进入,层层向内传递直到发送请求,然后响应再从内向外返回,每层中间件都有机会处理请求和响应。
2527

499 KB
Loading

0 commit comments

Comments
 (0)