timeout

abstract fun timeout(): Timeout

Returns a timeout that spans the entire call: resolving DNS, connecting, writing the request body, server processing, and reading the response body. If the call requires redirects or retries all must complete within one timeout period.

Configure the client's default timeout with OkHttpClient.Builder.callTimeout.