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,%XXescapes decoded;Nonewithout it or when it doesn’t decode. - prefix
X-Forwarded-Prefixwhen 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_tzcookie, when it names one jiff knows.