reqwest-retry-after

Crates.ioreqwest-retry-after
lib.rsreqwest-retry-after
version0.1.2
sourcesrc
created_at2022-08-07 00:10:22.80656
updated_at2024-01-06 20:03:13.770281
descriptionRetry-After header support for reqwest
homepage
repositoryhttps://github.com/melotic/reqwest-retry-after
max_upload_size
id640045
size11,459
Justin Perez (melotic)

documentation

README

reqwest-retry-after

Crates.io docs.rs Crates.io

reqwest-retry-after is a library that adds support for the Retry-After header in reqwest, using reqwest_middleware.

Usage

Simply pass RetryAfterMiddleware to the ClientWithMiddleware builder.

use reqwest_middleware::{ClientBuilder, ClientWithMiddleware};
use reqwest_retry_after::RetryAfterMiddleware;

let client = ClientBuilder::new(reqwest::Client::new())
    .with(RetryAfterMiddleware::new())
    .build();
Commit count: 13

cargo fmt