Skip to content

Rename onFullData to collectBody#1247

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/rename-onfullbody-to-collectbody
Draft

Rename onFullData to collectBody#1247
Copilot wants to merge 2 commits intomasterfrom
copilot/rename-onfullbody-to-collectbody

Conversation

Copy link
Contributor

Copilot AI commented Mar 15, 2026

Renames the body-accumulation helper from onFullData to collectBody for a cleaner, more descriptive API.

Changes

  • src/HttpResponseWrapper.h: Renamed res_onFullDatares_collectBody; updated JS prototype binding string "onFullData""collectBody"
  • docs/index.d.ts: Updated TypeScript interface declaration
  • docs/generated/interfaces/HttpResponse.html: Updated generated docs

Usage

// Before
res.onFullData(1024 * 1024, (body) => { /* ... */ });

// After
res.collectBody(1024 * 1024, (body) => { /* ... */ });

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Rename onFullBody to collectBody Rename onFullData to collectBody Mar 15, 2026
Copilot AI requested a review from uNetworkingAB March 15, 2026 12:16
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