DefaultHttpClient
constructor(userAgent: String? = null, connectTimeout: Duration? = null, readTimeout: Duration? = null, callback: DefaultHttpClient.Callback = object : Callback {})
Parameters
userAgent
Custom user agent to use for requests.
connectTimeout
Timeout used when establishing a connection to the resource. A null timeout is interpreted as the default value, while a timeout of zero as an infinite timeout.
readTimeout
Timeout used when reading the input stream. A null timeout is interpreted as the default value, while a timeout of zero as an infinite timeout.