There are a lot of garbled characters in the email, it is recommended that you use text mode
Thanks, Ming Wen, Apache APISIX PMC Chair Twitter: _WenMing 韩冬冬 <597410...@qq.com.invalid> 于2021年8月11日周三 上午9:55写道: > when use apisix response-writer plugin,i find some problem like this: when > use mutiply plugin,the message/code response from apisix will not very > friendly when i want to modify this content,so why not to supply jsonArray > to this plugin,something like this: > > > "response-rewrite": [{"body": "{\"code\":\"ok\",\"message\":\"new > json body\"}", > "headers": {"X-Server-id": 3, > "X-Server-status": "on", > "X-Server-balancer_addr": "$balancer_ip:$balancer_port" > > }, > "vars": [["status", > "==", > "200" > > ] > > ] > > }, > {"body": "{\"code\":\"error\",\"message\":\"request limit\"}", > "headers": {"X-Server-id": 3, > "X-Server-status": "on", > "X-Server-balancer_addr": "$balancer_ip:$balancer_port" > > }, > "vars": [["status", > "==", > "502" > > ] > > ] > > } > > ] >