Skip to content

http2: Http2ServerResponse missing writableObjectMode and writableNeedDrain #63000

@fru1tworld

Description

@fru1tworld

Version

main

Subsystem

http2

What steps will reproduce the bug?

const http2 = require('http2');
http2.createServer((req, res) => {
  console.log(res.writableObjectMode, res.writableNeedDrain); // undefined undefined
  res.end();
}).listen();

What is the expected behavior?

Both should return values matching http.OutgoingMessage (false / boolean), like other writable* getters already mirrored in lib/internal/http2/compat.js.

What do you see instead?

Both return undefined.

Additional information

Refs #29230 (writableFinished, since landed). Same parity gap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions