View Source Snap.Auth behaviour (Snap v0.9.0)
Defines how HTTP request is transformed to add authentication.
Summary
Callbacks
Modifies an HTTP request to include authentication details
Types
@type response() :: {:ok, {Snap.HTTPClient.method(), Snap.HTTPClient.url(), Snap.HTTPClient.headers(), Snap.HTTPClient.body()}} | {:error, term()}
@type t() :: module()
Callbacks
@callback sign( Snap.Cluster.config_opts(), Snap.HTTPClient.method(), Snap.HTTPClient.url(), Snap.HTTPClient.headers(), Snap.HTTPClient.body() ) :: response()
Modifies an HTTP request to include authentication details