ExGram.Adapter behaviour (ex_gram v0.58.0)
View SourceBehaviour for HTTP adapters
Summary
Types
@type path() :: String.t()
@type result_request() :: {:ok, map()} | {:error, ExGram.Error.t()}
@type verb() :: :post | :get
Callbacks
@callback request(verb(), path(), body(), keyword()) :: result_request()