Skip to content

Add http2 module externs - #217

Merged
kevinresol merged 4 commits into
HaxeFoundation:masterfrom
kevinresol:feat/http2
Jul 14, 2026
Merged

Add http2 module externs#217
kevinresol merged 4 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 4 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>
CI already targets Haxe 4+, so keep arrow-function typings and js.lib.Error only.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kevinresol
kevinresol merged commit 3e56e9f into HaxeFoundation:master Jul 14, 2026
10 checks passed
@kevinresol
kevinresol deleted the feat/http2 branch July 15, 2026 01:02
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