summaryrefslogtreecommitdiff
path: root/ext/node/polyfills
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-09-12 03:03:57 +0100
committerGitHub <noreply@github.com>2024-09-12 02:03:57 +0000
commit46d5f38a0f839db34ecce67f3483469e82cb593d (patch)
tree307bbe836040155cb64c48f0897ea713737a7819 /ext/node/polyfills
parent3285801429eb7a40e022b571b7e3007c3e60250c (diff)
fix(ext/node): export request and response clases from `http2` module (#25592)
Closes https://github.com/denoland/deno/issues/20612 Closes https://github.com/denoland/deno/issues/23326 This makes `qwik` work.
Diffstat (limited to 'ext/node/polyfills')
-rw-r--r--ext/node/polyfills/http2.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/node/polyfills/http2.ts b/ext/node/polyfills/http2.ts
index cab7aa26c..a9ced2bd9 100644
--- a/ext/node/polyfills/http2.ts
+++ b/ext/node/polyfills/http2.ts
@@ -2295,7 +2295,7 @@ function onStreamTimeout(kind) {
};
}
-class Http2ServerRequest extends Readable {
+export class Http2ServerRequest extends Readable {
readableEnded = false;
constructor(stream, headers, options, rawHeaders) {
@@ -2523,7 +2523,7 @@ function isConnectionHeaderAllowed(name, value) {
value === "trailers";
}
-class Http2ServerResponse extends Stream {
+export class Http2ServerResponse extends Stream {
writable = false;
req = null;