Apruve v0.1.0 Apruve.Adapter behaviour View Source

Module for specifying adapter behaviours. Typically an HTTPS adapter that makes HTTPS requests to Apruve servers.

Link to this section Summary

Link to this section Types

Link to this type http_status_code() View Source
http_status_code() :: non_neg_integer()
Link to this type url_fragment() View Source
url_fragment() :: String.t()

Link to this section Callbacks

Link to this callback delete(url_fragment, arg1) View Source
delete(url_fragment(), Apruve.ClientConfig.t()) ::
  {:ok, String.t(), http_status_code(), any()} | {:error, any()}
Link to this callback get(url_fragment, arg1) View Source
get(url_fragment(), Apruve.ClientConfig.t()) ::
  {:ok, String.t(), http_status_code(), any()} | {:error, any()}
Link to this callback post(url_fragment, arg1, arg2) View Source
post(url_fragment(), String.t(), Apruve.ClientConfig.t()) ::
  {:ok, String.t(), http_status_code(), any()} | {:error, any()}
Link to this callback put(url_fragment, arg1, arg2) View Source
put(url_fragment(), String.t(), Apruve.ClientConfig.t()) ::
  {:ok, String.t(), http_status_code(), any()} | {:error, any()}