hf400159 commented on code in PR #7620: URL: https://github.com/apache/apisix/pull/7620#discussion_r941934906
########## docs/zh/latest/plugins/client-control.md: ########## @@ -57,11 +67,15 @@ curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f03433 ## 测试插件 -使用 `curl` 去测试: +启用插件后,使用 `curl` 命令请求该路由: ```shell curl -i http://127.0.0.1:9080/index.html -d '123' +``` +在配置插件时设置了 `max_body_size` 为 `1`,如果返回的 HTTP 响应头中带有 `413` 状态码,则表示插件生效: Review Comment: ```suggestion 因为在配置插件时设置了 `max_body_size` 为 `1`,所以返回的 HTTP 响应头中如果带有 `413` 状态码,则表示插件生效: ``` ########## docs/zh/latest/plugins/client-control.md: ########## @@ -75,7 +89,7 @@ HTTP/1.1 413 Request Entity Too Large ## 禁用插件 -当您要禁用 `client-control` 插件时,这很简单,您可以在插件配置中删除相应的 json 配置,无需重新启动服务,它将立即生效: +当你需要禁用该插件时,可以通过以下命令删除相应的 JSON 配置,APISIX 将会自动重新加载相关配置,无需重启服务: ```shell curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' Review Comment: ```suggestion curl http://127.0.0.1:9080/apisix/admin/routes/1 \ -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' ``` ########## docs/zh/latest/plugins/client-control.md: ########## @@ -23,22 +28,27 @@ title: client-control ## 描述 -`client-control` 插件能够动态地控制 Nginx 处理客户端的请求的行为。 +`client-control` 插件能够动态地控制 NGINX 处理客户端的请求的行为。 Review Comment: Can you describe it more clearly? For example, by setting the size of the request body to control client access? The current description is too broad. -- 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]
