-
-
Notifications
You must be signed in to change notification settings - Fork 35.1k
Open
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.http2Issues or PRs related to the http2 subsystem.Issues or PRs related to the http2 subsystem.
Description
- All versions that have HTTP2 and HTTPS* implemented
- Documentation problem
The code below shows what is up. I wonder what could be the reason that it works even-tough it is undocumented even in the typescript definitions that come with npm.
I would say this is due to C++ inheritance from HTTPServer to HTTPSServer and HTTP2Server, but no idea, someone could look into it to make sure.
const server = http2.createServer({
allowHTTP1: true
});
server.on('upgrade', (request, socket, head) => {
// This does work, but no documentation anywhere (internet, TS definitions, ancestor classes neither)
// (One could add as ws upgrade handler here)
});
Edit: apparently it is undocumented in the node HTTPS Server as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.http2Issues or PRs related to the http2 subsystem.Issues or PRs related to the http2 subsystem.