在Nginx+Lua的环境下,怎样在响应数据返回前,替换部分数据?

访问网址/abc,返回a.html的数据
但是在返回数据前
需要将a.html里面的

www
替换为
eee

请问一下这个Lua能做到吗?

http://nginx.org/en/docs/http/ngx_http_sub_module.html
可以使用 Nginx 的 ngx_http_sub_module 模块

java中可以,通过httpServletResponseWrapper。lua中你看一下httpGet函数,不行的话,估计只能借助dll来做了

在nginx那个阶段使用lua的httpGe函数,如何使用能说详细点么?

具体不太了解,只能给楼主提供方向。。