vertx / io.vertx.reactivex.core.http / HttpClientRequest / setTimeout

# setTimeout

`open fun setTimeout(timeoutMs: Long): HttpClientRequest`

Set's the amount of time after which if the request does not return any data within the timeout period an java.util.concurrent.TimeoutException will be passed to the exception handler (if provided) and the request will be closed.

Calling this method more than once has the effect of canceling any existing timeout and starting the timeout from scratch.

### Parameters

`timeoutMs` - The quantity of time in milliseconds.

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