Closes the underlying http client.
Closes the underlying http client. Can be a no-op if the underlying client does not have state that needs to be closed
Sends the given request to elasticsearch.
Sends the given request to elasticsearch.
Implementations should invoke the callback function once the response is known.
The callback function should be invoked with a HttpResponse for all requests that received a response, including 4xx and 5xx responses. The callback function should only be invoked with an exception if the client failed.
A typeclass for an underlying http client so that it can be used by the ElasticClient. The idea is that this trait can be used to wrap a HTTP library such as Apache HTTP commons, or Akka HTTP client or whatever. The wrapped client can then be passed into the ElasticClient.