aws / aws/aws-lambda-nodejs-runtime-interface-client
Move awslambda HttpResponseStream/streamifyResponse to the aws-sdk or its own package?
未關閉
- 主要語言
- TypeScript
- 星號
- 224
- 分支
- 60
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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.
貢獻指南
評估
這個 Issue 還沒有評估資料。