Polish contribution

See gh-32941
This commit is contained in:
Stéphane Nicoll 2024-06-07 17:05:22 +02:00
parent 916ed5c0a9
commit 329b53309a
1 changed files with 4 additions and 2 deletions

View File

@ -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");