View Source ElasticsearchEx.Client (Elasticsearch_ex v1.8.2)

Provides the functions to make HTTP calls.

Summary

Types

body()

@type body() :: any()

cluster_config()

@type cluster_config() :: %{
  :endpoint => binary(),
  optional(:headers) => headers(),
  optional(:req_opts) => keyword()
}

headers()

@type headers() :: %{required(binary()) => binary()}

method()

@type method() :: :head | :get | :post | :put | :delete

opts()

@type opts() :: keyword()

path()

@type path() :: iodata()

Functions

request(method, path, body \\ nil, opts \\ [])

@spec request(method(), path(), body(), opts()) :: any()