Pristine.Response (Pristine v0.3.1)

Copy Markdown View Source

Public runtime response wrapper for execute and stream workflows.

Summary

Types

t()

@type t() :: %Pristine.Response{
  body: term(),
  headers: map(),
  metadata: map(),
  status: integer() | nil,
  stream: Enumerable.t() | nil
}

Functions

from_stream(response)

@spec from_stream(Pristine.Core.StreamResponse.t()) :: t()

from_transport(response)

@spec from_transport(Pristine.Core.Response.t()) :: t()

new(opts \\ [])

@spec new(keyword()) :: t()