@shadow-js/dusk/node
The 19 exports of @shadow-js/dusk/node: 8 functions, 10 interfaces and 1 type.
Everything @shadow-js/dusk/node exports, from the TSDoc of its entry point.
Functions#
createFileKVStore: Creates the file store.isCompressible: Whether a content type is worth compressing: text, JSON, JavaScript, XML, SVG, WebAssembly.markProcessLocalStore: Records that a store keeps its entries in the memory of this process only.negotiateEncoding: Chooses a content coding fromAccept-Encoding: the highest q-value wins, and a tie goes to brotli, then zstd (only wherenode:zlibhas it), then gzip.node: The adapter for Node.js: writesserver.mjs.safeSegments: Decodes a request path into safe segments.serve: Serves a handler over HTTP with Node'shttpmodule.workerInfo: Tells which process the caller runs in.
Interfaces#
CompressOptions: Options of response compression.FileKVStoreOptions: Options of createFileKVStore.NodeAdapterOptions: Options of the node adapter.PoolControl: What the primary of a worker pool can do, onServerHandle.pool.ServeOptions: Options of serve.ServerHandle: A running server.SignalTarget: The part ofprocessthe server uses for shutdown signals.StaticOptions: Options of static file serving.SuperviseOptions: Settings of the supervision of a worker pool.WorkerInfo: What workerInfo reports.
Types#
Encoding: A content coding this server produces.