def method.idempotent
import emerging-ezhttp@0.21.0.0/src/http.bend as Httpimport Base
728# safe methods, plus PUT and DELETE, are idempotent (RFC 9110 §9.2.2)
729def method.idempotent(+method: String) -> Bool:
730 Bool.or(method.safe(method),
731 Bool.or(String.eq(method, "PUT"), String.eq(method, "DELETE")))
Uses (5)
Used by (0)
No other definition uses this definition.