Expand description
Embedded single-binary SSR Web UI for arks serve (E8).
Compile-time embedded stylesheet (include_str!), strict HTML entity escaping
on every dynamic value, and Content-Security-Policy: default-src 'self'; script-src 'none'.
Never interferes with Git smart/dumb HTTP (info/refs, git-upload-pack,
git-receive-pack, objects/, HEAD) or Git LFS (info/lfs/).
Spec: sot:root/v0-2-0-scope-expansion §2.8 (E8).
Constants§
Functions§
- handle_
web_ ui - Route browser
GETrequests to the embedded SSR Web UI; returnsNonefor Git smart/dumb HTTP and LFS paths so protocol traffic passes through untouched. - html_
escape - Strictly escape HTML special characters to prevent XSS.
- web_
ui_ page_ handler - Build a
PageHandlerserving the embedded SSR Web UI forgit_dir.