Skip to content

Commit 99c2b1e

Browse files
committed
Add snippet for maxInMemorySize config
See gh-23961
1 parent 1795a6a commit 99c2b1e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/docs/asciidoc/web/webflux.adoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -831,10 +831,10 @@ with one object in the stream.
831831

832832
To configure buffer sizes, you can check if a given `Decoder` or `HttpMessageReader`
833833
exposes a `maxInMemorySize` property and if so the Javadoc will have details about default
834-
values. In WebFlux, the `ServerCodecConfigurer` provides a
835-
<<webflux-config-message-codecs,single place>> from where to set all codecs, through the
836-
`maxInMemorySize` property for default codecs. On the client side, the limit can be changed
837-
in <<web-reactive.adoc#webflux-client-builder-maxinmemorysize, WebClient.Builder>>.
834+
values. On the server side, `ServerCodecConfigurer` provides a single place from where to
835+
set all codecs, see <<webflux-config-message-codecs>>. On the client side, the limit for
836+
all codecs can be changed in
837+
<<web-reactive.adoc#webflux-client-builder-maxinmemorysize, WebClient.Builder>>.
838838

839839
For <<webflux-codecs-multipart,Multipart parsing>> the `maxInMemorySize` property limits
840840
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
38923892
38933893
@Override
38943894
public void configureHttpMessageCodecs(ServerCodecConfigurer configurer) {
3895-
// ...
3895+
configurer.defaultCodecs().maxInMemorySize(512 * 1024);
38963896
}
38973897
}
38983898
----

0 commit comments

Comments
 (0)