reqwest-rest

Crates.ioreqwest-rest
lib.rsreqwest-rest
version0.1.0
created_at2025-08-31 21:04:00.893501+00
updated_at2025-08-31 21:04:00.893501+00
descriptionAn opinionated utility to help with creating (and configuring) one-off idiomatic REST API clients.
homepage
repositoryhttps://github.com/cbeck88/reqwest-rest
max_upload_size
id1818900
size69,996
Chris Beck (cbeck88)

documentation

README

reqwest-rest

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.

reqwest-retry feature

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.

Commit count: 0

cargo fmt