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":&nbsp;[{"body":&nbsp;"{\"code\":\"ok\",\"message\":\"new
> json body\"}",
> "headers":&nbsp;{"X-Server-id":&nbsp;3,
> "X-Server-status":&nbsp;"on",
> "X-Server-balancer_addr":&nbsp;"$balancer_ip:$balancer_port"
>
> },
> "vars":&nbsp;[["status",
> "==",
> "200"
>
> ]
>
> ]
>
> },
> {"body":&nbsp;"{\"code\":\"error\",\"message\":\"request limit\"}",
> "headers":&nbsp;{"X-Server-id":&nbsp;3,
> "X-Server-status":&nbsp;"on",
> "X-Server-balancer_addr":&nbsp;"$balancer_ip:$balancer_port"
>
> },
> "vars":&nbsp;[["status",
> "==",
> "502"
>
> ]
>
> ]
>
> }
>
> ]
> &nbsp;

Reply via email to