stravalib.util.limiter.get_rates_from_response_headers#

stravalib.util.limiter.get_rates_from_response_headers(headers)[source]#

Returns a namedtuple with values for short - and long usage and limit rates found in provided HTTP response headers :param headers: HTTP response headers :type headers: dict :return: namedtuple with request rates or None if no rate-limit headers present in response. :rtype: Optional[RequestRate]