libvault v0.2.3 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

http_options()

http_options() :: Keyword.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, http_options)

request(method(), url(), params(), headers(), http_options()) ::
  {:ok, response()} | {:error, term()}