MCPcopy Create free account
hub / github.com/AI45Lab/Code / is_retryable_status

Method is_retryable_status

core/src/retry.rs:61–63  ·  view source on GitHub ↗

Check if a given HTTP status code is retryable

(&self, status: StatusCode)

Source from the content-addressed store, hash-verified

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 ///

Callers 4

send_requestMethod · 0.80
send_streamingMethod · 0.80
send_requestMethod · 0.80
send_streamingMethod · 0.80

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected