< prev index next >

src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/HttpRequest.java

Print this page

        

*** 353,363 **** * jdk.incubator.http.HttpResponse.BodyHandler) HttpClient::sendAsync} * completes exceptionally with a {@code HttpTimeoutException}. The effect * of not setting a timeout is the same as setting an infinite Duration, ie. * block forever. * ! * @param duration * @return this request builder */ public abstract Builder timeout(Duration duration); /** --- 353,363 ---- * jdk.incubator.http.HttpResponse.BodyHandler) HttpClient::sendAsync} * completes exceptionally with a {@code HttpTimeoutException}. The effect * of not setting a timeout is the same as setting an infinite Duration, ie. * block forever. * ! * @param duration the timeout duration * @return this request builder */ public abstract Builder timeout(Duration duration); /**
< prev index next >