timeout

open fun timeout(timeout: Long): HttpRequest.Builder

Timeout defines how long, in seconds, the request is allowed to take in total (including connecting to the host). Default is 0, meaning no timeout.