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()?
optionalflush: () =>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
| Parameter | Type |
|---|---|
chunk | string | Uint8Array |
Returns
boolean