This is an automated email from the ASF dual-hosted git repository.
membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 766e99f doc: fix doc style of plugin fault-injection (#1322)
766e99f is described below
commit 766e99f7a69901a738325a778048fc75f6045115
Author: kv <[email protected]>
AuthorDate: Sun Mar 22 19:30:18 2020 +0800
doc: fix doc style of plugin fault-injection (#1322)
---
doc/plugins/fault-injection-cn.md | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/doc/plugins/fault-injection-cn.md
b/doc/plugins/fault-injection-cn.md
index 103e6f7..29453a8 100644
--- a/doc/plugins/fault-injection-cn.md
+++ b/doc/plugins/fault-injection-cn.md
@@ -17,13 +17,13 @@
#
-->
-[English](fault-injection.md)
+# [English](fault-injection.md)
# fault-injection
故障注入插件,该插件可以和其他插件一起使用,并且会在其他插件前被执行,配置 `abort` 参数将直接返回给客户端指定的响应码并且终止其他插件的执行,配置
`delay` 参数将延迟某个请求,并且还会执行配置的其他插件。
-### 参数
+## 参数
|名称 |必须|描述|
|------- |-----|------|
@@ -33,9 +33,9 @@
注:参数 abort 和 delay 至少要存在一个
-### 示例
+## 示例
-#### 启用插件
+### 启用插件
示例1:为特定路由启用 `fault-injection` 插件,并指定 `abort` 参数:
@@ -117,8 +117,7 @@ user 0m0.007s
sys 0m0.010s
```
-
-#### 禁用插件
+### 禁用插件
移除插件配置中相应的 JSON 配置可立即禁用该插件,无需重启服务: