Skip to main content

arks_server/web/core/
mod.rs

1//! Core SSR infrastructure: escape-by-default HTML engine, per-request context,
2//! mount-aware typed routes, segment router, and ETag-backed embedded asset registry.
3
4pub mod assets;
5pub mod ctx;
6pub mod headers;
7pub mod html;
8pub mod pwa;
9pub mod route;
10pub mod router;
11
12pub use assets::{
13    AssetRegistry, EmbeddedAsset, core_asset_url, core_assets, core_manifest_hash, serve_core_asset,
14};
15pub use ctx::{HtmxInfo, MountPrefix, QueryMap, RequestCtx, RouteParams, SessionCtx, UserRole};
16pub use headers::{
17    COOP, CORP, HSTS, PERMISSIONS_POLICY, REFERRER_POLICY, WEB_UI_CSP, WEB_UI_CSP_HTTPS,
18    X_CONTENT_TYPE_OPTIONS, X_FRAME_OPTIONS, html_cache_headers, html_security_headers,
19    is_git_wire_path,
20};
21pub use html::{Attr, HtmlBuf, Render, SanitizedHtml, TrustedHtml, url_encode_component};
22pub use pwa::{pwa_enabled, serve_pwa_route};
23pub use route::{AccessPolicy, AppRoute};
24pub use router::{Method, RouteDef, RouteMatch, Router, format_allow_header};