Type Alias: NodeHTTPRequest
On this page
NodeHTTPRequest:
DistributiveOmit<http.IncomingMessage|http2.Http2ServerRequest,"socket"> &object
Defined in: packages/server/src/adapters/node-http/types.ts:30
A Node.js HTTP/1 or HTTP/2 request, as the Node.js adapters take it.
Type declaration
body?
optionalbody:unknown
The body, if a framework or middleware parsed it already. tRPC reads it instead of the stream.
socket?
optionalsocket:Partial<http.IncomingMessage["socket"]> |Partial<http2.Http2ServerRequest["socket"]>
Optional, and maybe partial: some hosts don't give a full Node.js socket (https://github.com/trpc/trpc/issues/6341).