pub fn duration_from_response(
status: StatusCode,
headers: &HeaderMap,
backoff: &mut ExponentialBackoff,
) -> Option<Duration>Expand description
Return Some if the response specifies a Retry-After header or the provided backoff has
another backoff to try. If None is returned, the request should not be retried.