From 99c2b1e2423628b4b444b6a752e2dfc1aadce3a4 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Tue, 31 Mar 2020 17:04:15 +0100 Subject: [PATCH] Add snippet for maxInMemorySize config See gh-23961 --- src/docs/asciidoc/web/webflux.adoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); } } ----