diff --git a/integration/spring/src/main/java/io/wcm/caravan/rhyme/spring/api/HttpClientCustomizer.java b/integration/spring/src/main/java/io/wcm/caravan/rhyme/spring/api/HttpClientCustomizer.java index d9944269..4223367e 100644 --- a/integration/spring/src/main/java/io/wcm/caravan/rhyme/spring/api/HttpClientCustomizer.java +++ b/integration/spring/src/main/java/io/wcm/caravan/rhyme/spring/api/HttpClientCustomizer.java @@ -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); } diff --git a/integration/spring/src/main/java/io/wcm/caravan/rhyme/spring/impl/SpringRhymeAutoConfiguration.java b/integration/spring/src/main/java/io/wcm/caravan/rhyme/spring/impl/SpringRhymeAutoConfiguration.java index 190e997f..5a9953fa 100644 --- a/integration/spring/src/main/java/io/wcm/caravan/rhyme/spring/impl/SpringRhymeAutoConfiguration.java +++ b/integration/spring/src/main/java/io/wcm/caravan/rhyme/spring/impl/SpringRhymeAutoConfiguration.java @@ -107,7 +107,9 @@ WebClient.Builder defaultRhymeWebClientBuilder(ObjectProvider customizer.customize(httpClient)); + for (HttpClientCustomizer customizer : httpClientCustomizerProvider) { + httpClient = customizer.customize(httpClient); + } return WebClient.builder() .codecs(configurer -> configurer.defaultCodecs().maxInMemorySize(16 * 1024 * 1024))