Files
floci/docs
Niels Kootstra 65b09d0aac fix(lambda): stream the body of a RESPONSE_STREAM function URL (#7885)
* fix(lambda): return the streamed body from a RESPONSE_STREAM function URL

A function URL in RESPONSE_STREAM mode parsed only the HttpResponseStream
prelude and dropped the body written after its eight NUL bytes, so callers got
the status and headers with an empty body. Split the stream at the delimiter
and return the rest as the body; a stream without a prelude is a 200
application/octet-stream, as on AWS. The stream is still buffered.

Closes #7837

* fix(lambda): stream the body of a RESPONSE_STREAM function URL as it is written

The runtime API now hands a streamed response to the invocation chunk by chunk,
ahead of the BodyHandler that buffers every other response, and completes the
invocation only when the stream ends, so the timeout, the concurrency permit
and the container stay held for the whole stream. The function URL answers as
soon as the head is known and writes each chunk as it arrives. The prelude is
read only when the stream's content type is
application/vnd.awslambda.http-integration-response; any other stream keeps
the content type the handler set.

* fix(lambda): check the streamed function URL response without timing it

The runtime API and controller tests pin chunk-by-chunk delivery, so the
end-to-end test only checks the status, content type and body.
2026-11-10 11:54:40 -04:00
..
2026-03-15 17:43:56 -05:00