rate-limits
A crate for parsing HTTP rate limit headers as per the IETF draft. Inofficial implementations like the Github rate limit headers are also supported on a best effort basis. See vendor list for support.
use indoc;
use ;
use ;
let headers = indoc! ;
assert_eq!;
Also takes the Retry-After
into account when calculating the reset time.
Other resources:
Installation
cargo add rate-limits