belongwqz opened a new issue #3393:
URL: https://github.com/apache/apisix/issues/3393


   Currently the plugin `response-rewrite` support diy body or encode_base64 
body, i's still relatively weak, if it can modify the body, it should be 
better. For example:
   before body:
   `{"key": "value"}`
   after body:
   if the status code<400 `{"status": 0, "msg": "OK", "data": {{ 
xxx-response_body }}`
   if the status code>=400 `{"status": {{ status_code }}, "msg": {{ 
xxx-response_body }}}`
   Maybe it can use regular expression to support this.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to