Closed mjpieters closed 8 months ago
Hi, @mjpieters. I'm sorry for not getting back to you sooner. This change looks good! I'm about to merge it. Could you resolve the conflict, please?
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
bf1c6fa
) 76.89% compared to head (dc5e390
) 76.88%.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
HTTPX accepts JSON-encodable objects directly, there is no need for this project to 'manually' encode the data to JSON.
By passing the body object directly to HTTPX, the library can then also handle the appropriate client headers (Content-Type specifically).
Finally, this also neatly addresses the deprecation warning that HTTPX emits whithout this change:
Use 'content=<...>' to upload raw bytes/text content.
. The latter could also be avoided by usingcontent=serialized_body
instead ofdata=serialized_body
.