vertx / io.vertx.ext.web.client / HttpRequest / timeout

timeout

abstract fun timeout(value: Long): HttpRequest<T>

Configures the amount of time in milliseconds after which if the request does not return any data within the timeout period an java.util.concurrent.TimeoutException fails the request.

Setting zero or a negative value disables the timeout.

Parameters

value - The quantity of time in milliseconds.

Return
a reference to this, so the API can be used fluently