fix: Local Server should pass HTTP headers down to the Lambda Runtime#643
Merged
sebsto merged 7 commits intoawslabs:mainfrom Feb 18, 2026
Merged
Conversation
Collaborator
|
Thank you @manojmahapatra, this is a really good first contribution. I added a tiny suggestion in the code. May I suggest to also update the 1/ add an example that doesn't depend on the API Gateway. (the APIGateway case is already covered, users can list the forwarded headers in the payload) |
sebsto
requested changes
Feb 17, 2026
Contributor
Author
|
Hi @sebsto, thanks for taking a look. As suggested I've also added an example that does not depend on the API gateway, and updated relevant docs/README. Tested locally, working as expected. |
…hapatra/swift-aws-lambda-runtime into fix/local-server-forward-headers
Collaborator
|
Looks good to me. I made a small change to pass the swift format check. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #
#607
Description of changes
The local HTTP server was not forwarding user‑provided headers to the runtime’s response. It passes all headers through to the runtime. This it makes local behavior match the Lambda runtime API contract and allows developers to opt into metadata by sending the appropriate runtime headers.
New/existing dependencies impact assessment, if applicable
N/A
Conventional Commits
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.