We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a0bc84 commit 9285014Copy full SHA for 9285014
packages/open-next/src/http/openNextResponse.ts
@@ -306,4 +306,23 @@ export class OpenNextNodeResponse extends Transform implements ServerResponse {
306
}
307
callback();
308
309
+
310
+ get sent() {
311
+ return this.finished || this.headersSent;
312
+ }
313
314
+ getHeaderValues(name: string): string[] | undefined {
315
+ const values = this.getHeader(name);
316
317
+ if (values === undefined) return undefined;
318
319
+ return (Array.isArray(values) ? values : [values]).map((value) =>
320
+ value.toString(),
321
+ );
322
323
324
+ send() {
325
+ const body = this.body;
326
+ this.end(body);
327
328
0 commit comments