Skip to content

Expose HttpResponse.beginWrite and update uWebSockets submodule cleanly#1292

Closed
uNetworkingAB with Copilot wants to merge 2 commits into
masterfrom
copilot/bump-uws-and-wrap-beginwrite
Closed

Expose HttpResponse.beginWrite and update uWebSockets submodule cleanly#1292
uNetworkingAB with Copilot wants to merge 2 commits into
masterfrom
copilot/bump-uws-and-wrap-beginwrite

Conversation

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

The previous pull request suffered from massive branch pollution, mistakenly including over 7,500 generated files, built binaries, and Node.js headers. This PR replaces that history with a clean, rebased commit chain containing only the intended minimal changes against the master branch.

Submodule Updates

  • uWebSockets: Cleanly bumped to fe7c01a477b688a7743f754fee33bdd78d52ad91 (includes upstream HttpResponse::beginWrite support).

Native Bindings

  • HttpResponseWrapper: Exposed beginWrite binding (res_beginWrite) with assumeCorked() assertions to match chunked write-path semantics. Registered it to the prototype template across secure and non-secure protocols.

TypeScript Definitions

  • docs/index.d.ts: Declared beginWrite() : HttpResponse on the HttpResponse interface.
res.writeStatus("200 OK")
   .writeHeader("Content-Type", "text/plain");

res.beginWrite(); // flush headers & start chunked transfer-encoding
res.write("chunk 1");
res.write("chunk 2");
res.end();

Copilot AI requested a review from uNetworkingAB July 8, 2026 09:03
Copilot AI changed the title Bump uWebSockets to v20.79.0 and expose HttpResponse.beginWrite in JS bindings Expose HttpResponse.beginWrite and update uWebSockets submodule cleanly Jul 8, 2026
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.

2 participants