Gemini.Response (Gemini v0.2.0)

A response as defined in the Gemini Protocol Specification. status is a two-digit tuple, meta is either a string (which will be copied into the response) or a tuple of Gemini.Meta module and arguments of that module. body is nil (no body), a binary (meta is a string), or any data that will be passed to the Gemini.Meta module. authenticated is set to false (no auth required), true (authenticated) or :required (user auth required).

Link to this section Summary

Link to this section Types

Specs

t() :: %Gemini.Response{
  authenticated: false | true | :required,
  body: any(),
  meta: String.t() | {mod :: atom(), name :: any()},
  status: {pos_integer(), non_neg_integer()}
}