Skip to main content

Module webapi

Module webapi 

Source
Expand description

Native web-platform globals: TextEncoder / TextDecoder / URL plus queueMicrotask / btoa / atob.

These are real #[rquickjs::class] bindings (Rust is the source of truth), not JS shims dispatching to hidden __ferri* helpers. URL is backed by the url crate; URLSearchParams comes from rquickjs-extra-url (installed separately) and is instantiated here via its registered global constructor — no string eval.

Structs§

TextDecoder
TextDecoder — UTF-8, lossy (matches fatal: false, the default).
TextEncoder
TextEncoder — UTF-8 only, matching the WHATWG default.
Url
WHATWG URL, backed by the url crate.

Functions§

install
Install the native web-API classes + globals. Called once at Session::create; persists across executions like the rest of the browser-like runtime surface.