File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -831,10 +831,10 @@ with one object in the stream.
831
831
832
832
To configure buffer sizes, you can check if a given `Decoder` or `HttpMessageReader`
833
833
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>>.
838
838
839
839
For <<webflux-codecs-multipart,Multipart parsing>> the `maxInMemorySize` property limits
840
840
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
3892
3892
3893
3893
@Override
3894
3894
public void configureHttpMessageCodecs(ServerCodecConfigurer configurer) {
3895
- // ...
3895
+ configurer.defaultCodecs().maxInMemorySize(512 * 1024);
3896
3896
}
3897
3897
}
3898
3898
----
You can’t perform that action at this time.
0 commit comments