Classes

c
HTTPServer()

Minimal HTTP + WebSocket server used to serve test bundles and push reload events.

Interfaces

I
Request

The request a route handler receives: node's, plus the four conveniences this server attaches before dispatching.

I
Response

The response a route handler receives: node's, plus a JSON shorthand.

I
Route

One registered route: the parsed shape get()/post()/… store and #findRouteHandler matches against.

Type Aliases

T
Middleware = (
req: Request,
res: Response,
next: () => void
) => void

Middleware function signature — call next() to continue the chain.

T
RouteHandler = (
req: Request,
res: Response
) => unknown | Promise<unknown>

Route handler function signature for registered GET/POST/etc. routes.

Variables

v
MIME_TYPES: Record<string, string>

Map of file extensions to their corresponding MIME type strings.