salemove_http_client v0.1.1 Salemove.HttpClient.Decoder
A module, responsible for creating a EngagementRouter.HttpClient.Response
from Tesla
response, or, if request wasn’t successful, for creating one
of exception structures.
Link to this section Summary
Link to this section Types
Link to this type
on_decode()
on_decode() :: {:ok, Salemove.HttpClient.Response.t()} | {:error, Salemove.HttpClient.InvalidResponseError.t()}
Link to this type
tesla_result()
tesla_result() :: {:ok, Tesla.Env.t()} | {:error, %Tesla.Error{__exception__: term(), message: term(), reason: term()}}
Link to this section Functions
Accepts result of request to Tesla
client and constructs
Elixir.Salemove.HttpClient.Response
structure from it.