JsonApiClient v3.1.1 JsonApiClient.Response View Source

A response from JSON API request

Fields

  • status - The HTTP Status code from the response
  • headers - The HTTP Headers as a list of tuples [{header, value}, ...]
  • doc - A JsonApiClient.Document if one was present in the response or nil
  • attributes - Custom attributes.

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %JsonApiClient.Response{
  attributes: map(),
  doc: JsonApiClient.Document.t() | nil,
  headers: map() | nil,
  status: integer() | nil
}