Ktor Rest Client
class KtorRestClient(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
)) : RestClient, Closeable
Ktor-client implementation of the RestClient.
Constructors
Link copied to clipboard
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
))