private String replaceUrl(final String url, final String sourceUrl) {
        final URI uri = URI.create(sourceUrl);
        if (StringUtils.isEmpty(uri.getQuery())) {
            return url + uri.getRawPath();
        } else {
            return String.format("%s%s?%s", url, uri.getRawPath(), uri.getQuery());
        }
    }
get rewrite url by request.

@param request the request.
@return {@linkplain String}
shenyu-sdk/shenyu-sdk-core/src/main/java/org/apache/shenyu/sdk/core/client/AbstractShenyuSdkClient.java