Skip to content

feat(runtime): support streaming with HTTP status code and headers - #19

Merged
ivanbarlog merged 3 commits into
mainfrom
feat/streaming-http-metadata
Nov 26, 2026
Merged

ivanbarlog merged 3 commits into
mainfrom
feat/streaming-http-metadata

Conversation

@ivanbarlog

Copy link
Copy Markdown
Contributor

Defines the awslambda global (streamifyResponse, HttpResponseStream.from) like the Node.js managed runtime. Streamified handlers get (event, responseStream, context) and the response POST carries Content-Type: application/vnd.awslambda.http-integration-response when a prelude is used. asResponseStreamHandler from @beesolve/lambda-fetch-api now works on Function URLs with RESPONSE_STREAM.

Returned ReadableStream / async iterables behave as before. A throw before the first write goes to the error endpoint. A throw after streaming started aborts the request (Bun's fetch has no trailers).

Verified in shared-dev: sample-app integration suite (10 tests) with a Function URL on the CMR, on the layer, and behind CloudFront with OAC. The same handler on nodejs24.x returned the same status, headers and body. Adds docs/how-to/streaming.md.

Release afterwards via workflow_dispatch with version 1.4.5 and patch 1 (4.10405.1).

Define the awslambda global (streamifyResponse, HttpResponseStream.from) like the
Node.js managed runtime, so asResponseStreamHandler works on Function URLs.
@ivanbarlog
ivanbarlog merged commit 50201aa into main Nov 26, 2026
3 checks passed
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.

1 participant