Skip to main content

Module headers

Module headers 

Source
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§

RetryAfterParseError 🔒

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