libvault v0.1.0 Vault.HTTP.Adapter behaviour

Adapter interface for making Vault HTTP.

Vault comes with a basic Tesla Adapter, providing support for hackney, httpc, and ibrowse

Link to this section Summary

Link to this section Types

Link to this type headers()
headers() :: [{String.t(), String.t()}]
Link to this type method()
method() :: :get | :put | :post | :patch | :delete | :head
Link to this type params()
params() :: map()
Link to this type response()
response() :: %{headers: list(), status: integer(), body: String.t()}
Link to this type url()
url() :: String.t()

Link to this section Callbacks

Link to this callback request(method, url, params, headers)
request(method(), url(), params(), headers()) ::
  {:ok, response()} | {:error, term()}