View Source Kadena.Chainweb.Client.Default (Kadena v0.19.1)

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

@type body() :: binary()
@type client_response() :: success_response() | error_response()
@type error_message() :: String.t()
@type error_response() :: {:error, status(), headers(), body()} | {:error, any()}
@type headers() :: [{binary(), binary()}, ...]
@type parsed_response() :: {:ok, map()} | {:error, Kadena.Chainweb.Error.t()}
@type status() :: pos_integer()
@type success_response() :: {:ok, status(), headers(), body()}