1 unstable release
| 0.1.0 | Jun 12, 2023 |
|---|
#5 in #remembering
9KB
136 lines
TypedResponse allows you to keep response body data, while remembering the
desired shape of both success and failure variant. TypedResponse lets you
extract raw body, or deserialize it into either serde_json::Value or required
success/failure shape based on the original response HTTP status.
When using reqwest sometimes you need to decide how to consume the response
body based on the response status or even based on some external input.
reqwest::Response, however, doesn't allow you to do it easily.
TypedResponse in this crate allows you to do exactly that.
Dependencies
~5–21MB
~231K SLoC