Skip to content
tRPC

Partners

Type Alias: NodeHTTPResponse

On this page

NodeHTTPResponse: DistributiveOmit<http.ServerResponse | http2.Http2ServerResponse, "write"> & object

Defined in: packages/server/src/adapters/node-http/types.ts:49

A Node.js HTTP/1 or HTTP/2 response, as the Node.js adapters take it.

Type declaration

flush()?

optional flush: () => void

Sends what a compression middleware (such as Express's compression()) has buffered so far. tRPC calls it while streaming.

Returns

void

write()

write: (chunk) => boolean

Parameters

ParameterType
chunkstring | Uint8Array

Returns

boolean