This is an automated email from the ASF dual-hosted git repository. liuhongyu pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/shenyu-website.git
The following commit(s) were added to refs/heads/main by this push: new 016e2a2f2c Update flow-control.md (#1078) 016e2a2f2c is described below commit 016e2a2f2c5188a675faccaf56a0a36f8d0e300f Author: shown <yuluo08290...@gmail.com> AuthorDate: Wed Jul 23 21:29:54 2025 +0800 Update flow-control.md (#1078) 居中图片 --- .../version-2.7.0.1/design/flow-control.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.7.0.1/design/flow-control.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.7.0.1/design/flow-control.md index f4499de3ee..81fe7de4e4 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-2.7.0.1/design/flow-control.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.7.0.1/design/flow-control.md @@ -22,11 +22,15 @@ description: Apache ShenYu 流量控制设计 插件、选择器和规则执行逻辑如下,当流量进入到`Apache ShenYu`网关之后,会先判断是否有对应的插件,该插件是否开启;然后判断流量是否匹配该插件的选择器;然后再判断流量是否匹配该选择器的规则。如果请求流量能满足匹配条件才会执行该插件,否则插件不会被执行,处理下一个。`Apache ShenYu`网关就是这样通过层层筛选完成流量控制。 -<img src="/img/shenyu/plugin/plugin-chain-execute.png" width="40%" height="30%" /> +<p align="center"> + <img src="/img/shenyu/plugin/plugin-chain-execute.png" width="40%" height="30%" /> +</p> ## 流量筛选 -<img src="/img/shenyu/design/flow-condition.png" width="30%" height="30%" /> +<p align="center"> + <img src="/img/shenyu/design/flow-condition.png" width="30%" height="30%" />| +</p> 流量筛选,是选择器和规则的灵魂,对应为选择器与规则里面的匹配条件(conditions),根据不同的流量筛选规则,我们可以处理各种复杂的场景。流量筛选可以从`Header`, `URI`, `Query`, `Cookie` 等等Http请求获取数据,