open fun setConnectTimeout(timeout: Int): Unit
Set the connection timeout for the underlying HttpClient. A timeout value of 0 specifies an infinite timeout.
Additional properties can be configured by specifying a RequestConfig instance on a custom HttpClient.
timeout - the timeout value in milliseconds
See Also
RequestConfig#getConnectTimeout()