ProtoRune.HTTPClient.Adapter behaviour (proto_rune v0.5.2)

Copy Markdown

The HTTPClient.Adapter module provides an adapter interface for HTTP clients. It defines the behaviour that must be implemented by any HTTP client adapter.

Summary

Callbacks

request(method, url, opts)

@callback request(method :: atom(), url :: String.t(), opts :: Keyword.t()) ::
  {:ok, term()} | {:error, term()}