Expand description
Request/response types: page config, manifest, render mode.
Structs§
- Asset
Manifest - Asset manifest loaded from
manifest.jsonin the embedded dist directory. - Page
Config - Configuration for rendering an HTML page with external assets.
- Page
Output - Output from render_page: HTML body + CSP header value + the nonce binding them together.
- Route
Assets - Per-route asset references.
- Wasm
Assets - WASM asset references.
Enums§
- Render
Mode - Per-route render strategy.
Constants§
- NOSNIFF
X-Content-Type-Options: nosniff— belongs on every response, not just documents.
Functions§
- asset_
security_ headers - Security headers for subresource responses (
/_assets/*,/sw.js). - document_
security_ headers - Security headers that only make sense on an HTML document response.