Salemove.HttpClient.Decoder (salemove_http_client v4.0.0)

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

Functions

Accepts result of request to Tesla client and constructs Elixir.Salemove.HttpClient.Response structure from it.

Link to this section Types

Link to this section Functions

Link to this function

decode(tesla_result)

Specs

decode(tesla_result()) :: on_decode()

Accepts result of request to Tesla client and constructs Elixir.Salemove.HttpClient.Response structure from it.