Hui.Http behaviour (Hui v0.10.3)

Types

response()

Specs

response() :: {:ok, t()} | {:error, Hui.Error.t()}

t()

Specs

t() :: %Hui.Http{
  body: nil | binary() | map(),
  headers: list(),
  method: :get | :post,
  options: keyword(),
  status: nil | integer(),
  url: iodata()
}

Functions

dispatch(request, client \\ Hui.Http.Httpoison)

Specs

dispatch(request :: t(), client :: module()) :: response()

Callbacks

dispatch(request)

Specs

dispatch(request :: t()) :: response()