1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

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.
This commit is contained in:
Bartek Iwańczuk 2024-09-12 03:03:57 +01:00 committed by GitHub
parent 3285801429
commit 46d5f38a0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -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;

View file

@ -378,3 +378,8 @@ Deno.test("[node/http2 client] connection states", async () => {
assertEquals(actual, expected);
});
Deno.test("request and response exports", () => {
assert(http2.Http2ServerRequest);
assert(http2.Http2ServerResponse);
});