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

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

Đang mở
#74 4 bình luận 13 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
224
Fork
60
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.