ExAwsSnsVerifier.Cert.HttpClientBehaviour behaviour (ex_aws_sns_verifier v0.1.0)

Copy Markdown View Source

Behaviour for pluggable HTTP clients used to fetch signing certificates.

Implement this module to use a custom HTTP client (Tesla, Req, Finch, etc.) instead of the default :httpc-based client.

Summary

Callbacks

Fetch the contents of a URL. Must return {:ok, body} or {:error, reason}.

Callbacks

get(url)

@callback get(url :: String.t()) :: {:ok, String.t()} | {:error, term()}

Fetch the contents of a URL. Must return {:ok, body} or {:error, reason}.