# Type Alias: NodeHTTPResponse

> 

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

Defined in: [packages/server/src/adapters/node-http/types.ts:49](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/server/src/adapters/node-http/types.ts#L49)

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

| Parameter | Type |
| ------ | ------ |
| `chunk` | `string` \| `Uint8Array` |

#### Returns

`boolean`
