openresty / resty-cli

Fancy command-line utilities for OpenResty
http://openresty.org
263 stars 64 forks source link

Why the resty can run “ngx.say” even thongh this API is not supported in timer phase #65

Closed Triple-Z closed 3 years ago

Triple-Z commented 3 years ago

ngx.say only can be used in rewrite, access and content phase.

Triple-Z commented 3 years ago

I have already found the answer in the following lines of code, closing this issue.

https://github.com/openresty/resty-cli/blob/cae04ca10309be1bb0d437e5b5c0cb7eeebfd78c/bin/resty#L856-L864