Packages

A client for interacting with the Sanity API and constructing GROQ queries from Elixir applications.

Current section

Files

Jump to
sanity_ex lib http_client.ex
Raw

lib/http_client.ex

defmodule SanityEx.HTTPClient do
@moduledoc false
@callback get(String.t(), headers :: list()) ::
{:ok, HTTPoison.Response.t()} | {:error, HTTPoison.Error.t()}
@callback post(String.t(), headers :: list(), body :: map()) ::
{:ok, HTTPoison.Response.t()} | {:error, HTTPoison.Error.t()}
end