elidactyl v0.1.2 Elidactyl.Request
Link to this section Summary
Link to this section Types
Link to this type
headers()
Specs
Link to this type
http_method()
Specs
http_method() :: atom()
Link to this type
request_options()
Specs
request_options() :: [{:use_client_api, boolean()}]
Link to this section Functions
Link to this function
delete(url, headers \\ [], options \\ [])
Specs
Link to this function
get(url, headers \\ [], options \\ [])
Specs
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
Link to this function
post(url, body, headers \\ [], options \\ [])
Specs
Link to this function
put(url, body, headers \\ [], options \\ [])
Specs
Link to this function
request(http_method, path, data \\ "", headers \\ [], opts \\ [])
Specs
request(http_method(), binary(), any(), headers(), request_options()) :: {:ok, binary()} | {:error, Elidactyl.Error.t()}