aws / aws/aws-durable-execution-sdk-python
[Testing] HttpRequest make body only bytes
- Lingua principale
- Python
- Stelle
- 53
- Fork
- 25
- Merge medio
- 1g 17h
- PR unite (30g)
- 37
Descrizione
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"
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con HttpRequest, confrontando from_bytes con from_raw_bytes, poi traccia gli handler che attualmente chiamano parse_json_body. Aggiorna la gestione del corpo della richiesta in modo che rimanga bytes e assicurati che body_to_dict contenga la deserializzazione e che gli handler lo utilizzino.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend-api-design
- Tipo di issue
- Refactoring
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 68/100