OptionaldestroyedWhether the underlying response stream has already been destroyed.
Completes the response, optionally with a final body chunk.
Optionalchunk: string | Uint8Array<ArrayBufferLike>Subscribes to response lifecycle events such as close and drain.
Writes a response-body chunk and returns false when backpressure applies.
Writes the HTTP status and response headers.
Optionalheaders: Record<string, string>
Minimal duck-typed shape of a Node.js
ServerResponse.