aws / aws/aws-lambda-java-libs
Returning errors and headers from the RequestStreamHandler lambda interface
- Vorherrschende Sprache
- Java
- Sterne
- 548
- Forks
- 241
- Ø Merge
- 2 T. 5 Min.
- Gemergte PRs (30 T.)
- 11
Beschreibung
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.
Beitragsleitfaden
Rechercherichtung
Das Issue nennt keine Repository-Dateien oder Tests. Beginne damit, das RequestStreamHandler-Interface und die response-stream function URL integration zu lesen, und prüfe dann, wie Statuscodes, Header und Fehler dargestellt werden. Als erledigt gilt, das unterstützte Verhalten zu dokumentieren oder einen abgestimmten Implementierungspfad für gestreamte Antworten mit einem Statuscode ungleich 200 festzulegen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, java
- Bereich
- api, cloud
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Ruhig
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100