Skip to content

Commit

Permalink
Fix HttpClientCustomizer
Browse files Browse the repository at this point in the history
  • Loading branch information
ckumpe committed Sep 21, 2023
1 parent 50cfa4b commit 6634d58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public interface HttpClientCustomizer {
* Callback to customize a {@link reactor.netty.http.client.HttpClient} instance.
* @param httpClient the client to customize
*/
void customize(HttpClient httpClient);
HttpClient customize(HttpClient httpClient);

}
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ WebClient.Builder defaultRhymeWebClientBuilder(ObjectProvider<HttpClientCustomiz

HttpClient httpClient = HttpClient.create(connectionProvider);

httpClientCustomizerProvider.orderedStream().forEach(customizer -> customizer.customize(httpClient));
for (HttpClientCustomizer customizer : httpClientCustomizerProvider) {
httpClient = customizer.customize(httpClient);
}

return WebClient.builder()
.codecs(configurer -> configurer.defaultCodecs().maxInMemorySize(16 * 1024 * 1024))
Expand Down

0 comments on commit 6634d58

Please sign in to comment.