Crate reqwest_drive

Source

Structs§

CachePolicy
Defines the caching policy for storing and retrieving responses.
ClientBuilder
A ClientBuilder is used to build a ClientWithMiddleware.
ClientWithMiddleware
ClientWithMiddleware is a wrapper around reqwest::Client which runs middleware on every request.
DriveCache
Provides an HTTP cache layer backed by a SIMD R Drive data store.
DriveThrottleBackoff
Implements a throttling and exponential backoff middleware for HTTP requests.
ThrottlePolicy
Defines the throttling and backoff behavior for handling HTTP requests.

Functions§

init_cache
Initializes only the cache middleware with a file-based data store.
init_cache_with_drive
Initializes only the cache middleware using an existing Arc<DataStore>.
init_cache_with_drive_and_throttle
Initializes both cache and throttle middleware using an existing Arc<DataStore>.
init_cache_with_throttle
Initializes both cache and throttle middleware with a file-based data store.
init_client_with_cache_and_throttle
Initializes a reqwest client with both cache and throttle middleware.