最近刚刚接触openresty,打算用openresty做一些模拟接口,替换线上的一些废弃但是必须有返回值的接口。
server {
listen 5000;
charset utf-8;
location = /mock/restapi {
default_type text/html;
content_by_lua_block { ngx.say("{\"code\":\"200\",\"message\":\"success\"}")}
}
}
--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty...@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+...@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
---
您收到此邮件是因为您订阅了Google网上论坛上的“openresty”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到openresty+...@googlegroups.com。
要在网络上查看此讨论,请访问https://groups.google.com/d/msgid/openresty/34d5464c-4841-4860-a669-376ad9932c06o%40googlegroups.com。