Skip to content

Commit 0aa721c

Browse files
committed
Polishing
1 parent 63af572 commit 0aa721c

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

spring-web/src/main/java/org/springframework/http/client/SimpleClientHttpRequestFactory.java

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -62,16 +62,9 @@ public void setProxy(Proxy proxy) {
6262
/**
6363
* Indicate whether this request factory should buffer the
6464
* {@linkplain ClientHttpRequest#getBody() request body} internally.
65-
* <p>Default is {@code true}. When sending large amounts of data via POST or PUT,
66-
* it is recommended to change this property to {@code false}, so as not to run
67-
* out of memory. This will result in a {@link ClientHttpRequest} that either
68-
* streams directly to the underlying {@link HttpURLConnection} (if the
69-
* {@link org.springframework.http.HttpHeaders#getContentLength() Content-Length}
70-
* is known in advance), or that will use "Chunked transfer encoding"
71-
* (if the {@code Content-Length} is not known in advance).
7265
* @see #setChunkSize(int)
73-
* @see HttpURLConnection#setFixedLengthStreamingMode(int)
74-
* @deprecated since 6.1 requests are never buffered, as if this property is {@code false}
66+
* @deprecated since 6.1 requests are never buffered,
67+
* as if this property is {@code false}
7568
*/
7669
@Deprecated(since = "6.1", forRemoval = true)
7770
public void setBufferRequestBody(boolean bufferRequestBody) {

0 commit comments

Comments
 (0)