Hui v0.10.1 Hui.Http behaviour View Source

Link to this section Summary

Link to this section Types

Link to this type response() View Source
response() :: {:ok, t()} | {:error, Hui.Error.t()}
Link to this type t() View Source
t() :: %Hui.Http{
  body: nil | binary() | map(),
  headers: list(),
  method: :get | :post,
  options: keyword(),
  status: nil | integer(),
  url: iodata()
}

Link to this section Functions

Link to this function dispatch(request, client \\ Hui.Http.Httpoison) View Source
dispatch(request :: t(), client :: module()) :: response()

Link to this section Callbacks

Link to this callback dispatch(request) View Source
dispatch(request :: t()) :: response()