SylviaBABY commented on code in PR #6891:
URL: https://github.com/apache/apisix/pull/6891#discussion_r854754931


##########
docs/zh/latest/plugins/response-rewrite.md:
##########
@@ -103,12 +119,23 @@ X-Server-balancer_addr: 127.0.0.1:80
 {"code":"ok","message":"new json body"}
 ```
 
-### 禁用插件
+:::info IMPORTANT
+
+[ngx.exit](https://openresty-reference.readthedocs.io/en/latest/Lua_Nginx_API/#ngxexit)
 将会中断当前请求的执行并将其状态码返回给 NGINX。
+
+如果你在 `access` 阶段执行 `ngx.exit`,只是中断了请求处理阶段,响应阶段仍然会处理。比如,如果你配置了 
`response-rewrite` 插件,它会强制覆盖你的响应信息(如响应代码)。

Review Comment:
   ```suggestion
   如果你在 `access` 阶段执行 `ngx.exit`,只是中断了请求处理阶段,响应阶段仍然会处理。如果你配置了 
`response-rewrite` 插件,它会强制覆盖你的响应信息(如响应代码)。
   ```



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to