Zazu.Response (zazu v0.2.1)

Copy Markdown View Source

A successful (2xx) API response.

:body is the parsed JSON body as-is — snake_case string-keyed maps, no struct mapping. :raw keeps the unparsed body; :request_id carries the X-Request-Id header.

Summary

Types

t()

@type t() :: %Zazu.Response{
  body: map() | list(),
  headers: map(),
  raw: binary(),
  request_id: String.t() | nil,
  status: pos_integer()
}