TimeoutConfiguration
data class TimeoutConfiguration(var requestTimeout: Duration = DEFAULT_TIMEOUT, var connectTimeout: Duration = DEFAULT_CONNECT_TIMEOUT, var socketTimeout: Duration = DEFAULT_TIMEOUT)(source)
Configuration class for defining timeout durations in network requests. Used to set and customize the request, connection, and socket timeouts.
Properties
Link copied to clipboard
Specifies the connection timeout duration for establishing a network connection. This value determines the maximum time allowed for a connection to be established before the operation is terminated.
Link copied to clipboard
Specifies the maximum duration allowed for a network request to complete before timing out. It acts as a safeguard to prevent indefinite waiting for responses.
Link copied to clipboard
Specifies the maximum amount of time to wait for data over an established socket connection before timing out.