aws / aws/aws-lambda-java-libs

Returning errors and headers from the RequestStreamHandler lambda interface

未關閉
#521 1 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Java
星號
548
分支
241
平均合併
2 天 5 分鐘
30 天內合併 PR
11

描述

Hello,
We managed to setup response streaming through Cloudfront from a Java lambda by implementing the RequestStreamHandler and connecting a function url with invokeMode: InvokeMode.RESPONSE_STREAM. It works very wel, but there seems to be no way to return any errors or alternate http codes or headers with the response stream, which results in empty http 200 responses for illegal requests. Is there a way to return this response information from the RequestStreamHandler and if not, is there a roadmap to implement this? Also a workaround to return http errors through cloudfront on empty responses would suffice for now.

貢獻指南

開啟貢獻指南

研究方向

The issue does not name repository files or tests. Start by reading the RequestStreamHandler interface and the response-stream function URL integration, then check how status codes, headers, and errors are represented. Done means documenting the supported behavior or defining an agreed implementation path for non-200 streamed responses.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
aws, java
領域
api, cloud
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
冷清
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。