SafeRPC.Adapter.HTTP.Response (safe_rpc v0.1.1)

Copy Markdown View Source

Framework-neutral HTTP response envelope for SafeRPC adapters.

Summary

Types

body()

@type body() :: :empty | {:full, iodata()}

header()

@type header() :: {String.t(), String.t()}

t()

@type t() :: %SafeRPC.Adapter.HTTP.Response{
  body: body(),
  headers: [header()],
  status: pos_integer()
}

Functions

text(status, body, headers \\ [])