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:
parent
3285801429
commit
46d5f38a0f
2 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue