aws / aws/aws-durable-execution-sdk-python
[Testing] HttpRequest make body only bytes
- 主要言語
- Python
- スター
- 53
- フォーク
- 25
- 平均マージ
- 1日 20時間
- マージ済み PR(30日)
- 39
説明
Migration from https://github.com/aws/aws-durable-execution-sdk-python-testing/issues/64
---
## overview
Follow-up from this PR https://github.com/aws/aws-durable-execution-sdk-python-testing/pull/59/files
Refactor HttpRequest so body only is type bytes, and not dict.
## acceptance criteria
1. Make HttpRequest body type bytes
2. Amend from_bytes to just update the bytes as you have it here in from_raw_bytes
3. Add a body_to_dict instance method that contains all the deserialization parsing. might need to add a _operation_name to the instance. This is what the handlers will call then, instead of "parse_json_body"
コントリビューションガイド
調査の方向性
HttpRequest から始め、from_bytes と from_raw_bytes を比較してから、現在 parse_json_body を呼び出しているハンドラーを追跡します。リクエストボディの処理を更新して bytes のままにし、body_to_dict がデシリアライゼーションを含み、ハンドラーがそれを使用するようにします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- backend-api-design
- issue の種類
- リファクタリング
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 68/100