mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* 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.