aws / aws/aws-lambda-java-libs

Returning errors and headers from the RequestStreamHandler lambda interface

Abierto
#521 1 comentario 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
548
Forks
241
Merge medio
2 d 5 min
PR fusionados (30 d)
11

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.