Stellar.Horizon.Client.Default (Elixir Stellar SDK v0.5.0) View Source

Hackney HTTP client implementation.

This implementation allows you to use your own JSON encoding library. The default is Jason.

Link to this section Summary

Link to this section Types

Specs

body() :: binary()

Specs

client_response() :: success_response() | error_response()

Specs

error_response() :: {:error, status(), headers(), body()} | {:error, any()}

Specs

headers() :: [{binary(), binary()}, ...]

Specs

parsed_response() :: {:ok, map()} | {:error, Stellar.Horizon.Error.t()}

Specs

status() :: pos_integer()

Specs

success_response() :: {:ok, status(), headers(), body()}