Expand description
Per-request Web UI context: mount prefix, HTMX protocol metadata, session/CSRF state, parsed route params, and query parameters — eliminating post-render HTML rewriting.
Structs§
- Htmx
Info - HTMX v2 protocol headers extracted once from an incoming
HttpRequest. - Mount
Prefix - Normalized URL mount prefix for single-repo (
""), multi-repo ("/alpha"), or reverse-proxy sub-path ("/git/alpha"). - Query
Map - Parsed URL query parameters.
- Request
Ctx - Unified per-request context passed to Web UI views and handlers.
- Route
Params - Captured route path parameters (e.g.
:id,:branch,*path). - Session
Ctx - Authenticated browser session + bound CSRF token resolved once per request.
Enums§
- User
Role - Authenticated user role in
arks serveRBAC.
Traits§
- UiCtx
- Shared read-only UI rendering context implemented by
RequestCtxand legacy [crate::web_ui::RepoContext].