Fluffy.Page (Fluffy v0.7.0)

Copy Markdown View Source

An opaque, live handle to one page in a session.

Metadata resolves the latest state. Handles survive navigation, but a closed page cannot be used again. Newly created pages have distinct identities.

Summary

Metadata

Types

query_value()

@type query_value() :: String.t() | [String.t()]

t()

@opaque t()

title_expectation()

@type title_expectation() :: String.t() | Regex.t()

url_component()

@type url_component() ::
  {:path, String.t()}
  | {:query, %{required(String.t()) => query_value()}}
  | {:query_mode, :exact | :subset}
  | {:fragment, String.t() | nil}

url_expectation()

@type url_expectation() ::
  String.t() | Regex.t() | (URI.t() -> boolean()) | [url_component()]