Can nginx process the backend data before returning it?

location /version {
    proxy_pass http://xxx.com/version;
}
the backend xxx.com/version returns a string. I want nginx to receive this string first and then return it to the client. Can it be implemented?
Mar.20,2021

of course, and there are many ways to see how you want to deal with it.

  1. extends with lua, refer to https://github.com/openresty/.
  2. implements a proxy server on its own, docking nginx with the upstream proxy server.
  3. develop the nginx module.
Menu