diff --git a/src/docs/asciidoc/web/webflux.adoc b/src/docs/asciidoc/web/webflux.adoc index 15290ab1ff..43535a2d0a 100644 --- a/src/docs/asciidoc/web/webflux.adoc +++ b/src/docs/asciidoc/web/webflux.adoc @@ -831,10 +831,10 @@ with one object in the stream. To configure buffer sizes, you can check if a given `Decoder` or `HttpMessageReader` exposes a `maxInMemorySize` property and if so the Javadoc will have details about default -values. In WebFlux, the `ServerCodecConfigurer` provides a -<> from where to set all codecs, through the -`maxInMemorySize` property for default codecs. On the client side, the limit can be changed -in <>. +values. On the server side, `ServerCodecConfigurer` provides a single place from where to +set all codecs, see <>. On the client side, the limit for +all codecs can be changed in +<>. For <> the `maxInMemorySize` property limits the size of non-file parts. For file parts, it determines the threshold at which the part @@ -3892,7 +3892,7 @@ The following example shows how to customize how the request and response body a @Override public void configureHttpMessageCodecs(ServerCodecConfigurer configurer) { - // ... + configurer.defaultCodecs().maxInMemorySize(512 * 1024); } } ----