View Source Snap.Auth behaviour (Snap v0.12.0)

Defines how HTTP request is transformed to add authentication.

Summary

Callbacks

Modifies an HTTP request to include authentication details

Types

response()

@type response() ::
  {:ok,
   {Snap.HTTPClient.method(), Snap.HTTPClient.url(), Snap.HTTPClient.headers(),
    Snap.HTTPClient.body()}}
  | {:error, term()}

t()

@type t() :: module()

Callbacks

sign(config_opts, method, url, headers, body)

Modifies an HTTP request to include authentication details