Reference

@reckona/mreact-router/adapters/node

4 public exports.

Function

FunctioncreateNodeRequestHandlerfunction createNodeRequestHandler(options: NodeRequestHandlerOptions): NodeRequestHandlerCreates a Node `IncomingMessage`/`ServerResponse` handler for built app-router output. The handler converts Node requests to Web `Request` objects, enforces configured host trust, applies the built renderer, and writes the Web `Response` back to the Node socket.

Interface

InterfaceNodeRequestHandlerOptionsinterface NodeRequestHandlerOptionsConfigures a Node request handler for built app-router output.

Re-export

Re-exportRouterInstrumentationconst RouterInstrumentation: unknownRe-exports router instrumentation hooks for Node handlers.

Type Alias

Type AliasNodeRequestHandlertype NodeRequestHandler = (incoming: IncomingMessage, outgoing: ServerResponse): Promise<void>Handles one Node HTTP request/response pair for built app-router output.