Skip to main content

is_idempotent_method

Function is_idempotent_method 

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

Check if HTTP method is idempotent (safe to retry) per RFC 9110.

Idempotent methods: GET, HEAD, PUT, DELETE, OPTIONS, TRACE. Non-idempotent methods: POST, PATCH.