Removes HTTP/1.1 chunked transfer framing from a body read a byte at a time, and passes the content on to a ResponseExcerpt.
More...
Removes HTTP/1.1 chunked transfer framing from a body read a byte at a time, and passes the content on to a ResponseExcerpt.
HTTPClient's getString() decodes a chunked body but keeps all of it; the gateway reads the raw stream to keep only a bounded excerpt, and the raw stream is the framing: CallMeBot's real reply reached the application as "a6 Message to: ... Message queued. ... 0" (hardware rig, 2026-09-15) – the chunk size in front, the terminating zero-length chunk behind. This reads the framing (hex size, optional ;extensions, CRLF, data, CRLF, ..., 0, trailers) and forwards only the data. A malformed size line stops decoding rather than guessing: what was decoded so far is kept.