LuxelEspañol

Luxel v0.2 · Reference · part 9 of 14

API reference (9)

ExportKindDescription
escapeTextconst—
fetchMetadataAllowsfunctionFetch Metadata (Sprint 7, SEC-S7), in addition to Origin and CSRF. When a browser sends these headers, an event must come from a same-origin script (Sec-Fetch-Site: same-origin, mode cors or same-origin, destination empty), and so must a state read. A request without them (a non-browser client, an old browser) is left to the Origin and CSRF checks. /
FilltypeWhat only the filled page shows (Sprint 7): the options every row select of a collection lists. */
FillDatatypeSprint 7: what only the filled page shows (e.g. the options every row select lists). */
fillProjectionfunctionFills one view. Returns the view's HTML followed by its resume block. */
fillStaticPagesfunctionSprint 10 (ADR-046): static views, filled once per slots variant with a state read without a session, a placeholder view token no gateway accepts and no CSRF token (the runtime then asks for a form token before each send). Sprint 11: exported, so luxel sign hashes the very pages the host will serve (ADR-048); a load that returns something else at start-up stops the host. /
FormTokenClaimsinterface—
FormVerifyResulttype—
GatewayIdentityinterface—
GatewayIdentityOptionsinterface—
GatewayJwtIdentityConfiginterfaceidentity in luxel.config (written by luxel build into luxel.config.json as it is). */
GatewayOptionsinterface—
GatewaySessioninterface—
hashSessionIdconstWhat a store keeps instead of the id (and the key of everything about it). */
holdsRequestSecretfunctionS1l (ADR-065 §17): whether a response body holds one of the current request's credential values (the token, its Bearer form or a JWT segment). Every dynamic body luxel-host writes is checked before it is compressed or sent: a hit refuses the response (nothing of it is sent). A handler may put session.identity.token in its output; the token never reaches a page. /
HostConfiginterface—
HostModuleinterfaceA universal runtime module as the host serves it. */
hostNamefunctionThe Host header's name without its port, lower-cased; '' when there is none or it is malformed. */
HostStartErrorclassSprint 9 (H-PROD-CONFIG, ADR-040): a host that cannot run safely refuses to start. The message names what is wrong and never a value (no secret, no URL, no key). /
HostSurfaceinterfaceA dynamic surface (ADR-017): the bindings produce it per request; luxel check gates it. */
ExportKindDescription
HostVariantinterface—
HostViewinterface—
httpSessionDelegatefunctionA SessionDelegate over HTTP: POST ‹url>/‹op> with a JSON body and Authorization: Bearer ‹secret>. The backend answers JSON (validate: the session or null; revokeUser, purge: { count }). Server to server only; nothing here reaches a browser. /
HttpSessionDelegateOptionsinterface—
IDENTITY_TOKEN_HEADERSconst—
IdentityClaimstypeThe claims of the verified token, as the app's mapping receives them. */
Edit this page on GitHub

This page: 7.9 KB of JavaScript (Luxel's shared runtime), 0 KB from your app.

Measured when the site is built: the runtime files this page loads, compressed as they are sent.

Made by IntiOps. The Luxel 0.1.0 betas are on npm (0.1.0-beta.1, 0.1.0-beta.2), with an alpha of 0.2 (0.2.0-alpha.1): no external security review yet.