Expand description
Handle rate limiting headers. Note that we might want to replace this module with https://github.com/mre/rate-limits at some point in the future.
Enums§
Functions§
- parse_
common_ 🔒rate_ limit_ header_ fields - Parse the common “X-RateLimit” header fields. Unfortunately, this is not standardised yet, but there is an IETF draft.
- parse_
header_ 🔒value - Helper method to parse numeric header values from common rate limit headers
- parse_
retry_ 🔒after - Parse the “Retry-After” header as specified per RFC 7231 section 7.1.3