@ -43,18 +43,13 @@ final class DefaultExchangeStrategiesBuilder implements ExchangeStrategies.Build
@@ -43,18 +43,13 @@ final class DefaultExchangeStrategiesBuilder implements ExchangeStrategies.Build
@ -74,28 +69,19 @@ final class DefaultExchangeStrategiesBuilder implements ExchangeStrategies.Build
@@ -74,28 +69,19 @@ final class DefaultExchangeStrategiesBuilder implements ExchangeStrategies.Build
@ -80,16 +79,14 @@ final class DefaultWebClientBuilder implements WebClient.Builder {
@@ -80,16 +79,14 @@ final class DefaultWebClientBuilder implements WebClient.Builder {
@ -111,7 +108,7 @@ final class DefaultWebClientBuilder implements WebClient.Builder {
@@ -111,7 +108,7 @@ final class DefaultWebClientBuilder implements WebClient.Builder {
@ -206,23 +203,9 @@ final class DefaultWebClientBuilder implements WebClient.Builder {
@@ -206,23 +203,9 @@ final class DefaultWebClientBuilder implements WebClient.Builder {
@ -246,7 +229,7 @@ final class DefaultWebClientBuilder implements WebClient.Builder {
@@ -246,7 +229,7 @@ final class DefaultWebClientBuilder implements WebClient.Builder {
@ -271,19 +254,6 @@ final class DefaultWebClientBuilder implements WebClient.Builder {
@@ -271,19 +254,6 @@ final class DefaultWebClientBuilder implements WebClient.Builder {
@ -41,26 +41,28 @@ The following example configures <<web-reactive.adoc#webflux-codecs, HTTP codecs
@@ -41,26 +41,28 @@ The following example configures <<web-reactive.adoc#webflux-codecs, HTTP codecs
Once built, a `WebClient` instance is immutable. However, you can clone it and build a
@ -93,44 +95,7 @@ modified copy without affecting the original instance, as the following example
@@ -93,44 +95,7 @@ modified copy without affecting the original instance, as the following example
// client2 has filterA, filterB, filterC, filterD
----
[[webflux-client-builder-maxinmemorysize]]
=== MaxInMemorySize
Spring WebFlux configures by default a maximum size for buffering data in-memory when decoding
HTTP responses with the `WebClient`. This avoids application memory issues if the received
response is much larger than expected.
The default configured value of 256KB might not be enough for your use case, and your application
might hit that limit with the following:
----
org.springframework.core.io.buffer.DataBufferLimitException: Exceeded limit on max bytes to buffer
----
You can configure this limit on all default codecs with the following code sample: