pagantis_elixir_tools v0.22.0 ElixirTools.HttpClient.Adapter behaviour

The adapter specifies a behaviour for implementing HttpClient adapters

Link to this section Summary

Callbacks

Returns the base URI String for the HTTP endpoint of a specific adapter.

Returns the token for a specific request.

Link to this section Callbacks

Specs

base_uri() :: String.t()

Returns the base URI String for the HTTP endpoint of a specific adapter.

Link to this callback

default_headers()

(optional)

Specs

default_headers() :: [tuple()]

Returns the token for a specific request.