Salemove.HttpClient.Response (salemove_http_client v2.1.0-rc.1)

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

Specs

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

Link to this section Functions

Specs

new(Tesla.Env.t()) :: t()

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