ex_swift v0.2.0 ExSwift.Response

Thin wrapper around Mojito.Response.

It allows to store parsed json in the Response struct.

Link to this section Summary

Functions

Transform Mojito.Response into ExSwift.Response

Link to this section Types

Link to this type

t()
t() :: %ExSwift.Response{
  body: (String.t() | map() | list()) | nil,
  headers: [{String.t(), String.t()}] | nil,
  json?: bool() | nil,
  status_code: pos_integer() | nil
}

Link to this section Functions

Link to this function

from_mojito(response)
from_mojito(Mojito.Response.t()) :: t()

Transform Mojito.Response into ExSwift.Response