node library
Node.js runtime metadata and the native listener entrypoint for Routed.
Classes
- NodeRuntimeExtension
- Host-native Node request, response, and server handles.
- RoutedNodeCapabilities
- Capabilities declared by one host invocation.
- RoutedNodeContext
- Runtime-scoped host context carried through a Routed request.
- RoutedNodeExtension
- A typed lookup for host-owned request context values.
- RoutedNodeLifecycleEvent
-
Host lifecycle event published through Routed's existing
EventManager. - RoutedNodeRuntimeInfo
- Common runtime metadata exposed by a host adapter.
Enums
- RoutedNodeEntryModel
- Whether a host owns a long-lived listener or invokes a fetch export.
- RoutedNodeLifecyclePhase
-
Lifecycle phases emitted by a
routed_nodehost. - RoutedNodeRuntime
-
Runtime families supported by
routed_node.
Constants
- nodeCapabilities → const RoutedNodeCapabilities
- Capabilities advertised by the Node listener adapter.
Functions
-
publishRoutedNodeLifecycle(
Engine engine, RoutedNodeLifecycleEvent event) → void - Publishes a host lifecycle event when the engine has an EventManager.
-
serveNode(
Engine engine, {String host = '127.0.0.1', int? port, bool echo = true}) → Future< ServerHandle> -
Boots a Routed
engineusing the Node.js HTTP server transport.