aws / aws/aws-durable-execution-sdk-python
[Testing] HttpRequest make body only bytes
- Lenguaje dominante
- Python
- Estrellas
- 53
- Forks
- 25
- Merge medio
- 1 d 19 h
- PR fusionados (30 d)
- 40
Descripción
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"
Guía de contribución
Línea de trabajo
Empieza por HttpRequest, comparando from_bytes con from_raw_bytes, y luego rastrea los handlers que actualmente llaman a parse_json_body. Actualiza el manejo del cuerpo de la solicitud para que siga siendo bytes y asegúrate de que body_to_dict contenga la deserialización y de que los handlers lo utilicen.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- backend-api-design
- Tipo de issue
- Refactorización
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bien especificado
- Aptitud para principiantes
- 68/100