pub fn default_on_request_success(success: &Response) -> Option<Retryable>
Expand description

Default request success retry strategy.

Will only retry if:

  • The status was 5XX (server error)
  • The status was 408 (request timeout) or 429 (too many requests)

Note that success here means that the request finished without interruption, not that it was logically OK.