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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。