How does springcloud-gateway,post filter get the data returned by the request

I wrote a custom gatewayfilter to get the returned response content in filter after the request is completed to see if the request is successful. But at present, only ServerHttpResponse postResponse = exchange.getResponse (); can be obtained, but the data returned by the request cannot be obtained

The

code is as follows:
return chain.filter (exchange). Then (Mono.fromRunnable (()-> {

)
       ServerHttpResponse postResponse = exchange.getResponse();
        //responseHttpServletResponseServerHttpResponse 
    }));
Oct.09,2021

has basically solved the problem, https://blog.csdn.net/tianyal., this blog has solved this problem, but another problem is that when the returned data is out of range, the returned data will be truncated (incomplete), and an error will occur in parsing the returned data

.
Menu