Skip to content

docs(events): clarify ownership of Lambda URL response streams - #657

Open
gibkim wants to merge 1 commit into
aws:mainfrom
gibkim:docs/streaming-body-ownership-590
Open

gibkim wants to merge 1 commit into
aws:mainfrom
gibkim:docs/streaming-body-ownership-590

Conversation

@gibkim

@gibkim gibkim commented Nov 27, 2026

Copy link
Copy Markdown

Issue #, if available:

Closes #590.

Description of changes:

Document that a successful LambdaFunctionURLStreamingResponse should be returned with its Body still open. The Lambda runtime reads the body while sending the response and then closes it if it implements io.ReadCloser.

Verified the rendered GoDoc and exercised the response through the local Runtime API test server, checking that the body reaches the server and is closed once. Race-enabled tests passed with two Docker-dependent integration tests excluded. Both excluded tests fail on the unchanged base with the local Docker daemon stopped.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@gibkim

gibkim commented Nov 27, 2026

Copy link
Copy Markdown
Author

I reproduced the lint failure on both 4111853 (the base) and fa97d1a with Go 1.27.4 and golangci-lint 2.13.1: the linter supports export data through version 4, while the toolchain emits version 5. The Go 1.26, Go 1.27, coverage, and Dockerized jobs passed.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.04%. Comparing base (4111853) to head (fa97d1a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #657   +/-   ##
=======================================
  Coverage   82.04%   82.04%           
=======================================
  Files          37       37           
  Lines        1487     1487           
=======================================
  Hits         1220     1220           
  Misses        264      264           
  Partials        3        3           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

How to use io.ReadCloser as Body of LambdaFunctionURLStreamingResponse

3 participants