Skip to main content

is_retryable_method

Function is_retryable_method 

Source
pub fn is_retryable_method(method: &Method) -> bool
Expand description

Whether repeating this method is safe.

POST is excluded on purpose. A retried POST /pullreq that timed out after the server accepted it would open a second pull request — silently doing the thing twice is worse than reporting that it might not have happened at all. PATCH is excluded for the same reason: GitFox uses it for partial updates, which are not guaranteed idempotent.