Skip to content

Add fetch, Request, Response, Headers, FormData, Blob, File externs - #209

Merged
kevinresol merged 1 commit into
HaxeFoundation:masterfrom
kevinresol:feat/globals-fetch
Jul 13, 2026
Merged

Add fetch, Request, Response, Headers, FormData, Blob, File externs#209
kevinresol merged 1 commit into
HaxeFoundation:masterfrom
kevinresol:feat/globals-fetch

Conversation

@kevinresol

Copy link
Copy Markdown
Contributor

Summary

  • Add undici-based Node.js v24 fetch globals under js.node.web: Fetch.fetch, Request, Response, Headers, FormData, Blob, File
  • RequestInit.signal uses js.node.web.AbortSignal
  • Includes shared AbortSignal / Event / EventTarget path types so the branch compiles independently; intended to compose with the abort/events PRs
  • body / stream() typed as Dynamic until web streams externs land
  • No Node.hx changes

Test plan

  • haxe build.hxml with Haxe 4.3.x
  • Spot-check Fetch.fetch + Request/Response/Headers/FormData/Blob/File against Node 24 / undici docs

Made with Cursor

Add undici-based Node 24 fetch globals surface under js.node.web, with AbortSignal typed via the shared package path.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kevinresol
kevinresol merged commit e92c9fd into HaxeFoundation:master Jul 13, 2026
@kevinresol
kevinresol deleted the feat/globals-fetch 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