Spikard.Response (spikard v0.15.6-rc.4)

Copy Markdown

HTTP Response with custom status code, headers, and content

Summary

Types

t()

HTTP Response with custom status code, headers, and content

Types

t()

@type t() :: %Spikard.Response{
  content: String.t() | nil,
  headers: map(),
  status_code: non_neg_integer()
}

HTTP Response with custom status code, headers, and content