EndpointConfig

class EndpointConfig

Endpoint settings.

Constructors

Link copied to clipboard
fun EndpointConfig()

Properties

Link copied to clipboard
var allowHalfClose: Boolean = false

Allow socket to close output channel immediately on writing completion (TCP connection half close).

Link copied to clipboard
var connectAttempts: Int = 1

Maximum number of connection attempts. Note: this property affects only connection retries, but not request retries

Link copied to clipboard
var connectRetryAttempts: Int

Maximum number of connection attempts.

Link copied to clipboard
var connectTimeout: Long = 5000

Connect timeout in millis.

Link copied to clipboard
var keepAliveTime: Long = 5000

Connection keep-alive time in millis.

Link copied to clipboard
var maxConnectionsPerRoute: Int = 100

Maximum connections per single route.

Link copied to clipboard
var pipelineMaxSize: Int = 20

Maximum number of requests per single pipeline.

Link copied to clipboard
var socketTimeout: Long

Socket timeout in millis.