HttpClientOptions

data class HttpClientOptions(    val followRedirects: Boolean = true,     val requestTimeout: Long,     val connectTimeout: Long,     val socketTimeout: Long)

Options to use when making HTTP requests.

Constructors

Link copied to clipboard
fun HttpClientOptions(    followRedirects: Boolean = true,     requestTimeout: Long,     connectTimeout: Long,     socketTimeout: Long)

Properties

Link copied to clipboard
val connectTimeout: Long

Timeout for connecting to the server in milliseconds. Defaults to 6 seconds.

Link copied to clipboard
val followRedirects: Boolean = true

Follows HTTP redirect responses if set to true. Defaults to true.

Link copied to clipboard
val requestTimeout: Long

Timeout for a complete HTTP request in milliseconds. Defaults to 30 seconds.

Link copied to clipboard
val socketTimeout: Long

Timeout between receiving or writing messages in milliseconds. Defaults to 10 seconds.