Closed Easy-deve closed 1 year ago
Not support yet.
Thanks for replying, I have another idea to be confirmed. I looked at the source code of apisix, and knew that I could get data from upstream in '_M.body_filter'. I want to write a own plug-in and call other services in '_M.body_filter' to perform some business processes. Is this feasible?
It depends on whether you need to rewrite the body. Due to Nginx's limitation (you can't suspend the body handling), you can call other services via ngx.timer.at
async, but you can't rewrite the body with the result.
Already supported.
Does the go-runner plug-in support processing the information returned from upstream? If not, can you write an internal plug-in in Lua language to intercept the response to handle special business.