juzhiyuan commented on a change in pull request #2732:
URL: https://github.com/apache/apisix/pull/2732#discussion_r525709907



##########
File path: doc/zh-cn/plugins/response-rewrite.md
##########
@@ -85,3 +94,29 @@ X-Server-status: on
 
 {"code":"ok","message":"new json body"}
 ```
+
+### 禁用插件
+
+禁用`response-rewrite`插件很简单。你不需要重新启动服务,只需要在插件配置中删除相应的 json 配置,它将立即生效。
+
+```shell
+curl http://127.0.0.1:9080/apisix/admin/routes/1  -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
+{
+    "methods": ["GET"],
+    "uri": "/test/index.html",
+    "upstream": {
+        "type": "roundrobin",
+        "nodes": {
+            "127.0.0.1:80": 1
+        }
+    }
+}'
+```
+
+## 注意事项
+
+`ngx.exit`将中断当前请求的执行,并返回状态码给 Nginx。
+
+![](https://cdn.jsdelivr.net/gh/Miss-you/img/picgo/20201113010623.png)

Review comment:
       Will this link be stable?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to