openresty ngx.say
时间: 2023-10-31 14:16:19 浏览: 148
nginx上传下载之openresty-1.15.8.2.tar.gz
OpenResty is a web platform that integrates the Nginx web server with Lua programming language. It allows developers to build web applications with high performance and scalability. The ngx.say function is a Lua function provided by OpenResty that allows developers to send response messages to the client. It is commonly used to output text, JSON, or XML data to the client. For example:
```lua
ngx.say("Hello, world!")
```
This code will send the message "Hello, world!" to the client as the response body.
阅读全文