Skip to content

Add http2 module externs#217

Open
kevinresol wants to merge 3 commits into
HaxeFoundation:masterfrom
kevinresol:feat/http2
Open

Add http2 module externs#217
kevinresol wants to merge 3 commits into
HaxeFoundation:masterfrom
kevinresol:feat/http2

Conversation

@kevinresol

Copy link
Copy Markdown
Contributor

Summary

  • Add js.node.Http2 module API (createServer, createSecureServer, connect, settings helpers, constants, sensitiveHeaders, performServerHandshake)
  • Add js.node.http2.* Core + Compatibility classes: sessions, streams, servers, Http2ServerRequest / Http2ServerResponse
  • Mirror existing http / tls / stream typing patterns (DynamicAccess headers, Event abstracts, options typedefs)

Test plan

  • haxe build.hxml succeeds in the worktree
  • Spot-check require paths against Node.js v24 http2 docs
  • Optional: small usage snippet compiling against createSecureServer + connect

Made with Cursor

kevinresol and others added 3 commits July 13, 2026 23:55
Cover the documented Core and Compatibility surfaces (sessions, streams,
servers, settings/constants) using existing http/tls/stream patterns.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace removed streamClosed with Duplex close+rstCode, drop @:jsRequire
on non-exported session/stream classes, and document Active-LTS-only APIs.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant