A set of utilities for working with the AT Protocol in Elixir.
1defmodule Atex.XRPC.Adapter do 2 @moduledoc """ 3 Behaviour for defining a HTTP client adapter to be used for XRPC. 4 """ 5 6 @type success() :: {:ok, map()} 7 @type error() :: {:error, integer(), map()} | {:error, term()} 8 @type result() :: success() | error() 9 10 @callback get(url :: String.t(), opts :: keyword()) :: result() 11 @callback post(url :: String.t(), opts :: keyword()) :: result() 12end