Expand description
Wrapper around reqwest to allow for easy partial retries
§Example
use futures_util::StreamExt;
use reqwest_partial_retry::ClientExt;
let client = reqwest::Client::new().resumable();
let request = client.get("http://httpbin.org/ip").build().unwrap();
let mut stream = client
.execute_resumable(request)
.await?
.bytes_stream_resumable();
while let Some(item) = stream.next().await {
println!("Bytes: {:?}", item?);
}
Structs§
- Client
- A wrapper for
reqwest::Client
to allow for resumable byte streams - Config
- Config for the resumable
Client
- Config
Builder - ConfigBuilder for the
Config
of the resumableClient
- Resumable
Response - A wrapper for
reqwest::Response
to allow for resumable byte streams
Enums§
- Error
- The errors that may occur
- Retry
Error - The error that possibly caused the retry
Traits§
- Client
Ext - Extension to
reqwest::Client
that provides methods to convert it into a resumableClient