Nex.Response (nex_core v0.4.3)

Copy Markdown

Standardized Response object.

Summary

Types

content_type()

@type content_type() :: String.t()

headers()

@type headers() :: %{optional(String.t()) => String.t()}

status()

@type status() :: non_neg_integer()

t()

@type t() :: %Nex.Response{
  body: term(),
  content_type: content_type(),
  headers: headers(),
  status: status()
}