mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-03 21:49:03 +00:00
Polish contribution
See gh-32941
This commit is contained in:
+4
-2
@@ -96,8 +96,10 @@ public class JdkClientHttpConnector implements ClientHttpConnector {
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the default read timeout to use.
|
||||
* <p>By default, this is null, so no read timeout will be set.</p>
|
||||
* Set the underlying {@code HttpClient}'s read timeout as a {@code Duration}.
|
||||
* <p>Default is the system's default timeout.
|
||||
* @since 6.2
|
||||
* @see java.net.http.HttpRequest.Builder#timeout
|
||||
*/
|
||||
public void setReadTimeout(Duration readTimeout) {
|
||||
Assert.notNull(readTimeout, "readTimeout is required");
|
||||
|
||||
Reference in New Issue
Block a user