View Source ElasticsearchApi.Client (Elasticsearch API v0.1.0)

Provides a HTTP client for Elasticsearch. It leverages the any_http library in order to defer to the user the choice of the Elixir HTTP client.

connect_options: [transport_opts: [verify: :verify_none]]

Summary

Types

@type body() :: any()
@type cluster() :: %{:endpoint => path(), optional(:headers) => headers()}
@type headers() :: map() | [{binary(), binary()}]
@type opts() :: keyword()
@type path() :: binary() | URI.t()
@type response() :: %{status: status(), headers: headers(), body: body()}
@type status() :: pos_integer()

Functions

Link to this function

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

View Source
@spec post(path(), headers(), body(), opts()) :: {:ok, response()}