Packages
A minimalistic Elasticsearch client for Elixir.
Current section
Files
Jump to
Current section
Files
lib/es_client/response.ex
defmodule ESClient.Response do
@moduledoc """
A struct containing the response data for an Elasticsearch request.
"""
defstruct [:content_type, :data, :status_code]
@type t :: %__MODULE__{
content_type: String.t(),
data: binary | %{optional(atom | String.t()) => any},
status_code: integer
}
end