You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
node:http: expose IncomingMessage.setEncoding for decoded data chunks #3416
Client-side http.IncomingMessage responses should expose setEncoding(encoding) and then emit decoded string chunks from data listeners. Perry currently does not expose the method as a function, so user code cannot request Node-compatible decoded response chunks.
setEncoding typeof: function
chunk: string false héllo
Perry Behavior
A focused parity probe in test-files/tmp_http_incoming_set_encoding.ts fails before the chunk-shape assertion because Perry reports the method as a non-function:
Node.js: setEncoding typeof: function
Perry: setEncoding typeof: number
Source evidence on origin/main: crates/perry-ext-http/src/lib.rs always delivers client response data listeners as a single Buffer chunk and has a TODO noting that res.setEncoding("utf8") should produce string chunks, but Perry does not yet track a per-response encoding flag.
Suggested PR Cut
Batch this with related issues in: node:http: IncomingMessage body stream semantics
I'm taking this in a focused node:http IncomingMessage body/header semantics PR with #3272, #3273, and #3416. Scope: server request headers, request data chunk shape, and client response setEncoding decoded chunks.
Opened PR #3525 for this IncomingMessage cluster.\n\nVerification: focused http/incoming-message parity passes 2/2 (report test-parity/reports/parity_report_20260531_050116.json); broad http parity passes 9/10 with only the existing http/server/upgrade-websocket mismatch remaining (report test-parity/reports/parity_report_20260531_050245.json); affected cargo check and hygiene checks pass.
Activity
andrewtdiz commentedon May 31, 2026
I'm taking this in a focused node:http IncomingMessage body/header semantics PR with #3272, #3273, and #3416. Scope: server request headers, request data chunk shape, and client response setEncoding decoded chunks.
andrewtdiz commentedon May 31, 2026
Opened PR #3525 for this IncomingMessage cluster.\n\nVerification: focused
http/incoming-messageparity passes 2/2 (reporttest-parity/reports/parity_report_20260531_050116.json); broadhttpparity passes 9/10 with only the existinghttp/server/upgrade-websocketmismatch remaining (reporttest-parity/reports/parity_report_20260531_050245.json); affected cargo check and hygiene checks pass.