Ktor Rest Client
constructor(host: String = "localhost", port: Int = 9200, https: Boolean = false, user: String? = null, password: String? = null, logging: Boolean = false, elasticApiKey: String? = null, client: HttpClient = defaultKtorHttpClient(
logging = logging,
user = user,
password = password,
elasticApiKey = elasticApiKey
))
constructor(vararg nodes: Node = arrayOf(
Node(
"localhost", 9200
)
), https: Boolean = false, user: String? = null, password: String? = null, logging: Boolean = false, nodeSelector: NodeSelector = RoundRobinNodeSelector(nodes), elasticApiKey: String? = null, client: HttpClient = defaultKtorHttpClient(
logging = logging,
user = user,
password = password,
elasticApiKey = elasticApiKey
))