aws / aws/aws-durable-execution-sdk-python
[Testing] HttpRequest make body only bytes
- 主要语言
- Python
- 星标
- 53
- 派生
- 25
- 平均合并
- 1 天 19 小时
- 30 天内合并 PR
- 40
描述
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