salemove_http_client v1.0.0 Salemove.HttpClient.Response

A generic HTTP client response. Contains response headers, status and body.

Specific clients must implement their own response handling logic.

Link to this section Summary

Functions

Create new Elixir.Salemove.HttpClient.Response struct from Tesla response

Link to this section Types

Link to this type

t()

t() :: %Salemove.HttpClient.Response{
  body: Tesla.Env.body(),
  headers: Tesla.Env.headers(),
  status: Tesla.Env.status()
}

Link to this section Functions

Create new Elixir.Salemove.HttpClient.Response struct from Tesla response