Pi.Web.Result (pi_bridge v0.6.22)

Copy Markdown View Source

Normalized result for a bounded web fetch.

Summary

Types

format()

@type format() :: :text | :html | :json | :markdown

t()

@type t() :: %Pi.Web.Result{
  content_type: String.t() | nil,
  final_url: String.t() | nil,
  format: format(),
  metadata: map(),
  redirected?: boolean(),
  size_bytes: non_neg_integer(),
  status: pos_integer() | nil,
  text: String.t(),
  title: String.t() | nil,
  total_chars: non_neg_integer(),
  truncated?: boolean(),
  url: String.t()
}