Hi team,
We are sending GET request with long urls (often longer than 200 characters due to various parameters)
Recently we tried to migrate it from apache http client to Webclient but found a performance hotspot in
|
public static String getRequestDescription(HttpMethod httpMethod, URI uri) { |
|
if (StringUtils.hasText(uri.getQuery())) { |
|
try { |
|
uri = new URI(uri.getScheme(), null, uri.getHost(), uri.getPort(), uri.getPath(), null, null); |
|
} |
|
catch (URISyntaxException ignored) { |
|
} |
|
} |
|
return httpMethod.name() + " " + uri; |
This method is primarily used for debugging / logging
|
.checkpoint("Request to " + |
|
WebClientUtils.getRequestDescription(request.method(), request.url()) + |
|
" [DefaultWebClient]") |
Could you help make a fix on them?
Hi team,
We are sending GET request with long urls (often longer than 200 characters due to various parameters)
Recently we tried to migrate it from apache http client to Webclient but found a performance hotspot in
spring-framework/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClientUtils.java
Lines 75 to 83 in 2ee4c3a
This method is primarily used for debugging / logging
spring-framework/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java
Lines 464 to 466 in 2ee4c3a
Could you help make a fix on them?