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

How to use ngx.OK ngx.DONE ngx.AGAIN ngx.ERROR ? #25

Closed
wendal opened this issue Apr 3, 2011 · 1 comment
Closed

How to use ngx.OK ngx.DONE ngx.AGAIN ngx.ERROR ? #25

wendal opened this issue Apr 3, 2011 · 1 comment

Comments

@wendal
Copy link

wendal commented Apr 3, 2011

In "Nginx API for Lua" -- "Core constants", there are 4 constants .
But there are no any infomation ahout how to use them.

So, how to use them ? Are they as same as NGX_OK/NGX_AGAIN/NGX_DONE/NGX_ERROR ??

@agentzh
Copy link
Member

agentzh commented Apr 7, 2011

They take the same values of NGX_OK, NGX_AGAIN, NGX_DONE, and NGX_ERROR. But now only ngx.exit() only take two of these values, i.e., NGX_OK and NGX_ERROR. I'll add a quick note to README. Thanks for reminding us.

@agentzh agentzh closed this as completed Apr 7, 2011
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

2 participants