aws / aws/aws-durable-execution-sdk-python
[Testing] HttpRequest make body only bytes
- Ngôn ngữ chính
- Python
- Star
- 53
- Fork
- 25
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 40
Mô tả
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"
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với HttpRequest, so sánh from_bytes với from_raw_bytes, sau đó truy vết các handler hiện đang gọi parse_json_body. Cập nhật việc xử lý request body để nó vẫn là bytes, đồng thời đảm bảo body_to_dict chứa phần deserialization và các handler sử dụng nó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- backend-api-design
- Loại issue
- Tái cấu trúc
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 68/100