Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

补充:ngx.exit 接口使用说明 #303

Open
Miss-you opened this issue Nov 11, 2020 · 0 comments
Open

补充:ngx.exit 接口使用说明 #303

Miss-you opened this issue Nov 11, 2020 · 0 comments

Comments

@Miss-you
Copy link
Contributor

  1. ngx.exit 是什么?有什么用?
  2. 结合案例进一步理解ngx.exit退出阶段的含义

ref:
apache/apisix#2703

another ref:
https://github.com/openresty/lua-nginx-module#ngxexit

When status >= 200 (i.e., ngx.HTTP_OK and above), it will interrupt the execution of the current request and return status code to Nginx.

When status == 0 (i.e., ngx.OK), it will only quit the current phase handler (or the content handler if the content_by_lua* directive is used) and continue to run later phases (if any) for the current request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant