| Crates.io | reqwest-rest |
| lib.rs | reqwest-rest |
| version | 0.1.0 |
| created_at | 2025-08-31 21:04:00.893501+00 |
| updated_at | 2025-08-31 21:04:00.893501+00 |
| description | An opinionated utility to help with creating (and configuring) one-off idiomatic REST API clients. |
| homepage | |
| repository | https://github.com/cbeck88/reqwest-rest |
| max_upload_size | |
| id | 1818900 |
| size | 69,996 |
This crate provides RestClient, a wrapper around reqwest-middleware::ClientWithMiddleware which simplifies
the process of making requests and decoding responses to a typical "REST" http-json API.
Once you have the request and response schema, it becomes simple to implement idiomatic RPC over this, and do whatever API-specific error interpretation is necessary for your program. The errors retain context and are easy to understand.
When reqwest-retry feature is enabled, the CommonConfig object can be used when configuring reqwest_middleware::ClientWithMiddleware,
to set up commonly-needed timeouts, and retries with backoff. This is merely for convenience and need not be used
in order to use RestClient.