public static ClientResponse buildClientResponse(final ServerHttpResponse response,
                                                     final Publisher<? extends DataBuffer> body) {
        ClientResponse.Builder builder = ClientResponse.create(Objects.requireNonNull(response.getStatusCode()), getReaders());
        return builder
                .headers(headers -> headers.putAll(response.getHeaders()))
                .cookies(cookies -> response.getCookies())
                .body(Flux.from(body)).build();
    }
build client response with current response data.

@param response current response
@param body     current response body
@return the client response
shenyu-plugin/shenyu-plugin-base/src/main/java/org/apache/shenyu/plugin/base/utils/ResponseUtils.java