View Source Soroban.RPC.Client.Spec behaviour (Soroban v0.5.0)
Specifies expected behaviour of an HTTP client.
Link to this section Summary
Link to this section Types
@type endpoint() :: String.t()
@type error_response() :: {:error, Soroban.RPC.Error.t() | Soroban.RPC.HTTPError.t()}
@type options() :: Keyword.t()
@type params() :: map() | nil
@type success_response() :: {:ok, map()}
Link to this section Callbacks
@callback request( endpoint :: endpoint(), url :: binary(), headers :: headers(), params :: params(), options :: options() ) :: success_response() | error_response()