Timeout

data class Timeout(val connectTimeout: Long, val requestTimeout: Long, val socketTimeout: Long)

Timeout of HTTP call.

Constructors

Link copied to clipboard
constructor(connectTimeout: Long, requestTimeout: Long, socketTimeout: Long)

Properties

Link copied to clipboard

Specifies a time period (in milliseconds) in which a client should establish a connection with a server.

Link copied to clipboard

Specifies a time period (in milliseconds) required to process an HTTP call: from sending a request to receiving first response bytes. To disable this timeout, set its value to 0.

Link copied to clipboard

Specifies a maximum time (in milliseconds) of inactivity between two data packets when exchanging data with a server.