Skip to main content

Module page

Module page 

Source
Expand description

What every page needs from its request: the path prefix links start with, and the browser’s time zone (from the cookie the page’s script sets).

Structs§

Page
A page’s context.

Constants§

DAGS_TRIGGER_COOKIE
The cookie remembering which DAGs by their trigger the DAGs page shows: active, paused, or empty for all.
DAGS_VIEW_COOKIE
The cookie remembering which deployment’s DAGs the DAGs page shows (M5.1l): a deployment’s name, or empty for all.
PREFIX_HEADER
The header a reverse proxy serving the UI under a path sets (e.g. /schedr).
ZONE_COOKIE
The cookie holding the browser’s IANA time zone, set by the page’s inline script.

Functions§

cookie
Cookie name’s value, %XX escapes decoded; None without it or when it doesn’t decode.
prefix
X-Forwarded-Prefix when it is a plain path (/ and letters, digits, -, _, ., ~; no ..), without its trailing slash; else "". Anything else is ignored rather than put into links.
zone
The time zone in the schedr_tz cookie, when it names one jiff knows.