View Source Stellar.Horizon.Request (Elixir Stellar SDK v0.22.0)
A module for working with requests to the Horizon API.
Requests are composed in a functional manner. The request does not happen
until it is configured and passed to perform/1
.
Generally intended to be used internally, but can also be used by end-users to work around missing endpoints (if any).
At a minimum, a request must have the endpoint and method specified to be valid.
Summary
Types
@type body() :: Keyword.t()
@type encoded_query() :: String.t() | nil
@type endpoint() :: String.t() | nil
@type method() :: :get | :post
@type opts() :: Keyword.t()
@type params() :: Keyword.t()
@type path() :: String.t() | nil
@type query() :: Keyword.t()
@type query_params() :: [atom()]
@type segment() :: String.t() | nil
@type server() :: Stellar.Horizon.Server.t()