DefaultClientConnectionConfig
constructor(host: String = DEFAULT_HOST, port: Int? = DEFAULT_PORT, protocol: URLProtocol? = null, headers: Map<String, List<String>>? = null, reconnectionDelay: Duration? = null, requestTimeout: Duration? = defaultRequestTimeout, connectTimeout: Duration? = defaultConnectionTimeout)(source)
Parameters
host
The hostname or IP address of the server to connect to. Defaults to 127.0.0.1.
port
The port number for the connection. Defaults to 50881.
protocol
The protocol to use for the connection (e.g., HTTP, HTTPS). Defaults to null, using the base class's default protocol instead.
headers
Optional HTTP headers to include in the connection. Defaults to null, which is treated as empty map.
reconnectionDelay
The delay between connection retry attempts, if applicable. Defaults to null.
requestTimeout
The timeout duration for requests. Defaults to 5.seconds.
connectTimeout
The timeout duration for a connection establishment. Defaults to 15.seconds.