The Node.js adapter integrates with theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/middleapi/orpc/llms.txt
Use this file to discover all available pages before exploring further.
node:http and node:https modules that ship with Node.js.
Installation
Basic usage
handle(req, res, options)
| Parameter | Type | Description |
|---|---|---|
req | IncomingMessage | The incoming Node.js HTTP request |
res | ServerResponse | The outgoing Node.js HTTP response |
options.context | Initial context type | Context passed to middleware |
options.prefix | string (optional) | Strip this prefix before routing |
{ matched: true } if a procedure was matched, or { matched: false } otherwise.
Unlike the fetch adapter, the Node.js adapter writes the response to
res directly rather than returning a Response object.With Express
Options
Restricts non-mutation procedures to GET requests.
Low-level interceptors around the full request handling cycle.
