LuxelEspañol

Luxel v0.1 · Reference · part 9 of 12

API reference (9)

ExportKindDescription
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. */
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—
isSameOriginfunctionOrigin must name this host: https always, http only on loopback (local runs). Sprint 11 (red team RT-11): it must be exactly a serialized origin (no path, no trailing slash) and its scheme must be the request's: https on a TLS connection; else the scheme the proxy forwards (the last X-Forwarded-Proto entry); else http on a loopback name (a direct local run) and https elsewhere (TLS terminated in front, as production requires). /
isSessionIdconst—
jsonLoggerconstOne JSON line per entry on stdout/stderr. */
loadViewsfunctionThe views a host serves: the bindings' hand-written adapters plus, for handlers written with defineEvent/defineLoad (ADR-018), the adapters @luxel-framework/server builds with the framework's idempotency, transaction, version control and authorization. Shared with the security tests. /
LogFieldstype—
Loggertype—
logoutFormAllowedfunctionSprint 12.3 (C15): the proof of origin of a sign-out form (‹Logout>), which carries no token: the browser's own account of the request, every part required. - Sec-Fetch-Site: same-origin, present: the form is in a page of this origin. A page of another site, of a sibling subdomain (same-site), a sandboxed frame or a data: document cannot make a browser send it, and a script cannot set it. A browser that sends no Fetch Metadata cannot use the form (as with a static view's form, ADR-049); nothing falls back to a weaker check. - Sec-Fetch-Mode: navigate and Sec-Fetch-Dest: document: a form's top-level navigation. - Origin, present: this origin, or null. A browser writes null in a navigation that leaves a page with Referrer-Policy: no-referrer, which every page of luxel-host has; any other origin is refused, whatever the rest says. The body is never read (the form has no field). The session cookie is SameSite=Strict besides: a cross-site navigation does not carry it. /
logoutRedirectTargetfunctionSprint 12.3 (C15): the grammar of the sign-out redirect, "/‹variant>/‹view>": an absolute path of this origin with exactly two segments of lowercase names. No scheme, no host ("//", "/\\"), no query, no fragment, no dots, no encoding. The one definition: createGateway refuses any other logoutRedirect, and luxel-host reads its config's logout with it. /
MAC_BYTESconst128 bits: the floor ADR-007 sets for a truncated HMAC-SHA256. */
MemoryRateLimiterinterface—
ExportKindDescription
MemorySessionStoreOptionsinterface—
mintFormTokenfunction—
mintViewTokenfunction—
newSessionIdconst—
normalizeTextfunction—
ownedFilesfunctionEvery file in the outputs the compiler owns, as outDir-relative POSIX paths. */
pageShapefunction—
PageShapeinterfaceSprint 8 (early send, ADR-033): what of a filled page does not depend on the data, computed once per view and variant. early is the page up to its content (head, critical CSS, the empty context element); pieces are the page's static parts around each view's fill; sent is how much of the first view's fill already left with early; errorTail closes what is open at the cut and writes the view's compiled, generic error state (its "unexpected" message, in the view's error class) instead of the rest: no detail, no resume block, no runtime. /
parseAllowedHostsfunction—
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. Luxel 0.1.0-beta.1 is a beta: no external security review yet.