Function URL with Response Streaming does not support Content-Encoding
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
この issue にはリポジトリのファイルやテストが記載されていません。まず、提供されている Node.js の streamifyResponse の例を再現し、Function URL 経由で受信したレスポンスを調査してください。gzip 圧縮されたストリームが圧縮されたままであり、Content-Encoding ヘッダーが保持されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
If I compress my response using gzip and set a proper Content-Encoding response header, it appears like Function URL will decompress my response on-the-fly, remove the Content-Encoding header, and pass down the uncompressed response stream. This is wasteful and unnecessary.
const pipeline = require("util").promisify(require("stream").pipeline);
const { Readable } = require("stream");
const zlib = require('zlib');
exports.handler = awslambda.streamifyResponse(async (event,
responseStream, context) => {
responseStream = awslambda.HttpResponseStream.from(responseStream, {
statusCode: 200,
headers: {
'content-encoding': 'gzip',
'content-type': 'text/plain',
}
});
await pipeline(
Readable.from(zlib.gzipSync('hello world')),
responseStream,
);
});
See here - the response is uncompressed, with Content-Encoding header stripped:
- 主要言語
- TypeScript
- スター
- 224
- フォーク
- 60
- 平均マージ
- 26分
- マージ済み PR(30日)
- 2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aws/aws-lambda-nodejs-runtime-interface-client のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
aws/aws-lambda-nodejs-runtime-interface-client#198 · コメント 3 件 · リアクション 6 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
aws/aws-lambda-nodejs-runtime-interface-client#195 · リアクション 12 件 ·
-
bug
aws/aws-lambda-nodejs-runtime-interface-client#170 · コメント 15 件 · リアクション 6 件 · 担当者 1 名 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 38/100
aws/aws-lambda-nodejs-runtime-interface-client#159 · リアクション 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
aws/aws-lambda-nodejs-runtime-interface-client#145 · コメント 1 件 · リアクション 6 件 ·
aws/aws-lambda-nodejs-runtime-interface-client の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
copse-dev/agent-pane#2953 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
calcite-components needs triage refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Esri/calcite-design-system#15203 ·