StellarSDK.Horizon.Client behaviour (Elixir Stellar SDK v0.1.0) View Source
Specifies expected behaviour of an HTTP client. Stellar allows you to use your HTTP client of choice, provided that it can be coerced into complying with this module's specification. The default is :hackney.
Link to this section Summary
Link to this section Types
Specs
Specs
method() :: :get | :post | :put | :delete
Specs
options() :: Keyword.t()
Specs
response() :: {:ok, non_neg_integer(), headers()}
Specs
response_error() :: {:error, any()}
Specs
response_with_body() :: {:ok, non_neg_integer(), headers(), binary()}
Link to this section Callbacks
Specs
request( method :: method(), url :: binary(), body :: binary(), headers :: headers(), options :: options() ) :: response() | response_with_body() | response_error()