Type Alias: NodeHTTPRequest
NodeHTTPRequest:
DistributiveOmit<http.IncomingMessage|http2.Http2ServerRequest,"socket"> &object
Defined in: packages/server/src/adapters/node-http/types.ts:29
Type declaration
body?
optionalbody:unknown
Many adapters will add a body property to the incoming message and pre-parse the body
socket?
optionalsocket:Partial<http.IncomingMessage["socket"]> |Partial<http2.Http2ServerRequest["socket"]>
Socket is not always available in all deployments, so we need to make it optional
See
- https://github.com/trpc/trpc/issues/6341 The socket object provided in the request does not fully implement the expected Node.js Socket interface.
- https://github.com/trpc/trpc/pull/6358