Pi.Web (pi_bridge v0.6.22)

Copy Markdown View Source

Bounded, provider-neutral web fetch helpers for eval sessions.

Summary

Functions

Fetches a URL with bounded time, redirect, size, and output limits.

Fetches a URL or raises on failure.

Functions

fetch(url, opts \\ [])

@spec fetch(
  String.t(),
  keyword()
) :: {:ok, Pi.Web.Result.t()} | {:error, term()}

Fetches a URL with bounded time, redirect, size, and output limits.

fetch!(url, opts \\ [])

@spec fetch!(
  String.t(),
  keyword()
) :: Pi.Web.Result.t()

Fetches a URL or raises on failure.