Packages
A minimalistic Elasticsearch client for Elixir.
Current section
Files
Jump to
Current section
Files
lib/es_client/drivers/httpoison.ex
defmodule ESClient.Drivers.HTTPoison do
@moduledoc """
An adapter implementation that uses HTTPoison to dispatch requests to
Elasticsearch.
"""
@behaviour ESClient.Driver
@impl true
def request(verb, url, body, headers, opts) do
HTTPoison.request(verb, URI.to_string(url), body, headers, opts)
end
end