elidactyl v0.1.0 Elidactyl.Request

Link to this section Summary

Link to this section Functions

Link to this function

delete(url, headers \\ [], options \\ [])

Specs

delete(binary(), list(), list()) :: any()
Link to this function

get(url, headers \\ [], options \\ [])

Specs

get(binary(), list(), list()) :: any()
Link to this function

handle_response(arg)

Specs

handle_response({:ok, HTTPoison.Response.t()} | {:error, HTTPoison.Error.t()}) ::
  {:ok, binary()} | {:error, Elidactyl.Error.t()}
Link to this function

patch(url, body, headers \\ [], options \\ [])

Specs

patch(binary(), any(), list(), list()) :: any()
Link to this function

post(url, body, headers \\ [], options \\ [])

Specs

post(binary(), any(), list(), list()) :: any()
Link to this function

put(url, body, headers \\ [], options \\ [])

Specs

put(binary(), any(), list(), list()) :: any()
Link to this function

request(http_method, path, data \\ "", headers \\ [])

Specs

request(atom(), binary(), any(), [{binary(), binary()}]) ::
  {:ok, binary()} | {:error, Elidactyl.Error.t()}