Miss-you commented on issue #2703:
URL: https://github.com/apache/apisix/issues/2703#issuecomment-725355769


   `ngx.exit` will interrupt the execution of the current request and return 
status code to Nginx.
   
   
![image](https://user-images.githubusercontent.com/3816205/98802824-d389bb00-244e-11eb-8fa7-107a31b16164.png)
   
   However, if you execute `ngx.exit` during the access phase, it only 
interrupts the request processing phase, and the response phase will still 
process it, i.e. if you configure the response-rerite plugin, it will force 
overwriting of your response information (e.g. rsp code).
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to