Check if a given HTTP status code is retryable
(&self, status: StatusCode)
| 59 | |
| 60 | /// Check if a given HTTP status code is retryable |
| 61 | pub fn is_retryable_status(&self, status: StatusCode) -> bool { |
| 62 | self.retryable_status_codes.contains(&status.as_u16()) |
| 63 | } |
| 64 | |
| 65 | /// Calculate the delay for a given attempt number (0-indexed) |
| 66 | /// |
no test coverage detected