View Source ElasticsearchEx.Client (Elasticsearch_ex v0.4.0)

Provides the functions to make HTTP calls.

Summary

Types

@type response() :: {:ok, term()} | {:error, ElasticsearchEx.Error.t()}

Functions

Link to this function

delete(path, headers \\ nil, body \\ nil, opts \\ [])

View Source
@spec delete(binary(), nil | map(), any(), keyword()) :: {:ok, term()}
Link to this function

get(path, headers \\ nil, body \\ nil, opts \\ [])

View Source
@spec get(binary(), nil | map(), any(), keyword()) :: {:ok, term()}
Link to this function

head(path, headers \\ nil, opts \\ [])

View Source
@spec head(binary(), nil | map(), keyword()) :: :ok | :error
Link to this function

patch(path, headers \\ nil, body \\ nil, opts \\ [])

View Source
@spec patch(binary(), nil | map(), any(), keyword()) :: {:ok, term()}
Link to this function

post(path, headers \\ nil, body \\ nil, opts \\ [])

View Source
@spec post(binary(), nil | map(), any(), keyword()) :: {:ok, term()}
Link to this function

put(path, headers \\ nil, body \\ nil, opts \\ [])

View Source
@spec put(binary(), nil | map(), any(), keyword()) :: {:ok, term()}
Link to this function

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

View Source