EndpointConfig

Contains Endpoint settings.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
var allowHalfClose: Boolean = false

Allows a socket to close an output channel immediately on writing completion (half-closed TCP connection).

Link copied to clipboard

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

Link copied to clipboard

Specifies a maximum number of connection attempts.

Link copied to clipboard
var connectTimeout: Long = 5000

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

Link copied to clipboard
var keepAliveTime: Long = 5000

Specifies a connection keep-alive time (in milliseconds).

Link copied to clipboard

Specifies the maximum number of connections for each host.

Link copied to clipboard

Specifies a maximum number of requests to be sent over a single connection without waiting for the corresponding responses (HTTP pipelining).

Link copied to clipboard

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