Skip to main content
Version: 11.x

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?

optional body: unknown

Many adapters will add a body property to the incoming message and pre-parse the body

socket?

optional socket: Partial<http.IncomingMessage["socket"]> | Partial<http2.Http2ServerRequest["socket"]>

Socket is not always available in all deployments, so we need to make it optional

See