Skip to main content

Module types

Module types 

Source
Expand description

Request/response types: page config, manifest, render mode.

Structs§

AssetManifest
Asset manifest loaded from manifest.json in the embedded dist directory.
PageConfig
Configuration for rendering an HTML page with external assets.
PageOutput
Output from render_page: HTML body + CSP header value + the nonce binding them together.
RouteAssets
Per-route asset references.
WasmAssets
WASM asset references.

Enums§

RenderMode
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.