mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 05:12:29 +00:00
[node:http] Stub _implicitHeader fn
This commit is contained in:
@@ -835,6 +835,9 @@ export class OutgoingMessage extends Writable {
|
||||
#timeoutTimer = null;
|
||||
[kAbortController] = null;
|
||||
|
||||
// Express "compress" package uses this
|
||||
_implicitHeader() {}
|
||||
|
||||
// For compat with IncomingRequest
|
||||
get headers() {
|
||||
if (!this.#headers) return kEmptyObject;
|
||||
@@ -977,6 +980,9 @@ export class ServerResponse extends Writable {
|
||||
#deferred = undefined;
|
||||
#finished = false;
|
||||
|
||||
// Express "compress" package uses this
|
||||
_implicitHeader() {}
|
||||
|
||||
_write(chunk, encoding, callback) {
|
||||
if (!this.#firstWrite && !this.headersSent) {
|
||||
this.#firstWrite = chunk;
|
||||
|
||||
@@ -543,6 +543,8 @@ class OutgoingMessage extends Writable {
|
||||
#fakeSocket;
|
||||
#timeoutTimer = null;
|
||||
[kAbortController] = null;
|
||||
_implicitHeader() {
|
||||
}
|
||||
get headers() {
|
||||
if (!this.#headers)
|
||||
return kEmptyObject;
|
||||
@@ -647,6 +649,8 @@ class ServerResponse extends Writable {
|
||||
_removedContLen = !1;
|
||||
#deferred = void 0;
|
||||
#finished = !1;
|
||||
_implicitHeader() {
|
||||
}
|
||||
_write(chunk, encoding, callback) {
|
||||
if (!this.#firstWrite && !this.headersSent) {
|
||||
this.#firstWrite = chunk, callback();
|
||||
|
||||
Reference in New Issue
Block a user