aws / aws/aws-lambda-nodejs-runtime-interface-client

Move awslambda HttpResponseStream/streamifyResponse to the aws-sdk or its own package?

Abierto
#74 4 comentarios 13 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
224
Forks
60
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

The fact that `streamifyResponse` and `HttpResponseStream` are only available embedded in the runtime makes it difficult to write simple, coherent unit tests for streaming lambda handlers. There's been at least [one good attempt](https://github.com/astuyve/lambda-stream) to create a wrapper to support easy testing, but it's not completely interface compatible (lacking, for example, the `HttpResponseStream.from(underlyingStream, prelude)` method) and it seems wasteful to rewrite/repackage code that's already written just to unbundle it from the rest of the NodeJS runtime.

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.