Skip to main content
Version: 11.x

Type Alias: NodeHTTPResponse

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

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

Type declaration

flush()?

optional flush: () => void

Force the partially-compressed response to be flushed to the client.

Added by compression middleware (depending on the environment, e.g. Next 12 and below, e.g. Express w/ compression())

Returns

void

write()

write: (chunk) => boolean

Parameters

ParameterType
chunkstring | Uint8Array

Returns

boolean